aboutsummaryrefslogtreecommitdiff
path: root/app/views/sessions/new.html.erb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
commita7791635aa98f012d35f97c3c5288494bbb28e38 (patch)
treebad987e6b4d10ad2f7cd02e40658d464907595ee /app/views/sessions/new.html.erb
downloadoperum-a7791635aa98f012d35f97c3c5288494bbb28e38.tar.gz
operum-a7791635aa98f012d35f97c3c5288494bbb28e38.zip
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views/sessions/new.html.erb')
-rw-r--r--app/views/sessions/new.html.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb
new file mode 100644
index 0000000..c6d7f4f
--- /dev/null
+++ b/app/views/sessions/new.html.erb
@@ -0,0 +1,21 @@
+<div class="center-contents">
+ <div></div>
+ <div>
+ <h2><%= I18n.t('sessions.title') %></h2>
+
+ <%= form_tag sessions_path do |form| %>
+ <div class='field'>
+ <%= label_tag :username, I18n.t('activerecord.attributes.user.username') %>
+ <%= text_field_tag :username, '', autofocus: true, class: 'width-100' %>
+ </div>
+ <div class='field'>
+ <%= label_tag :password, I18n.t('activerecord.attributes.user.password') %>
+ <%= password_field_tag :password, '', class: 'width-100' %>
+ </div>
+ <div class='actions'>
+ <%= submit_tag I18n.t('sessions.sign-in') %>
+ </div>
+ <% end %>
+ </div>
+ <div></div>
+</div>