89 lines
3.4 KiB
Text
89 lines
3.4 KiB
Text
|
<header class="header header#home">
|
||
|
<nav class="navbar navbar-expand-md navbar-dark bg-bleu_violet">
|
||
|
<div class="navbar-brand">
|
||
|
<a class="navbar-item" href="<%= root_url %>"><b>TuxBot</b></a>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
|
||
|
<div id="content">
|
||
|
<div class="columns mar-t-40">
|
||
|
<div class="column is-12">
|
||
|
<div class="card is-full-width">
|
||
|
<div class="header bg-bleu_violet">
|
||
|
<div class="avatar">
|
||
|
<img src="<%= url_exist?(@user.useravatar) ? @user.useravatar : image_url('default.png') %>" alt="user_avatar">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<div class="user-info has-text-centered">
|
||
|
<h3 class="username"><%= @user.username %></h3>
|
||
|
<h6 class="created_at"><%= t('users.created_at') %> <%= iso2human(@user.userbirth) %></h6>
|
||
|
<hr>
|
||
|
<div class="columns is-multiline">
|
||
|
<div class="column is-12">
|
||
|
<%= form_for(@user, url: user_path) do |f| %>
|
||
|
<div class="columns is-multiline">
|
||
|
<div class="column is-12">
|
||
|
<span class="subtitle"><i class="fab fa-linux"></i> <%= t('user.oses') %></span>
|
||
|
</div>
|
||
|
<div class="column is-12">
|
||
|
<%= f.text_field :os, class: 'input has-text-centered', id: 'oses' %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="columns is-multiline pad-t-20">
|
||
|
<div class="column is-12">
|
||
|
<span class="subtitle"><i class="fas fa-cogs"></i> <%= t('user.config') %></span>
|
||
|
</div>
|
||
|
<div class="column is-12 has-text-left">
|
||
|
<%= f.text_area :config, class: 'textarea', id: 'config', rows: '10' %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="columns is-multiline pad-t-20">
|
||
|
<div class="column is-12">
|
||
|
<span class="subtitle"><i class="fa fa-flag" aria-hidden="true"></i> <%= t('user.country') %>
|
||
|
<% if get_location %>
|
||
|
<a onclick="$('#pays').val('<%= get_location %>')" class="tooltip is-tooltip-dark" data-tooltip="<%= t('user.fill_country') %>"><i class="fas fa-map-marker-alt"></i></a>
|
||
|
<% end %>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="column is-12">
|
||
|
<%= f.text_field :pays, class: 'input has-text-centered', id: 'pays' %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="columns is-multiline pad-t-20">
|
||
|
<div class="column is-12">
|
||
|
<span class="subtitle"><i class="fas fa-sign-in-alt" aria-hidden="true"></i> <%= t('user.discord_created_at') %></span>
|
||
|
</div>
|
||
|
<div class="column is-12">
|
||
|
<span><%= iso2human(@user.userbirth) %></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="columns is-multiline pad-t-20">
|
||
|
<div class="column is-12">
|
||
|
<span><i class="fa fa-user-plus" aria-hidden="true"></i> <%= t('user.ci_created_at', date: iso2human(@user.cidate), office: @user.cibureau) %></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<button type="submit" class="button is-success is-outlined"><%= t('action.save') %></button>
|
||
|
<a href="<%= user_path(id: @user.id) %>" class="button is-danger" data-confirm="<%= t('action.confirmation') %>" data-method="DELETE"><%= t('action.delete') %></a>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subcard_action has-text-centered">
|
||
|
<ul class="mar-t-20">
|
||
|
<li>
|
||
|
<a href="<%= user_path(id: @user.id) %>" class="grey-link"><%= t('action.back') %></a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|