1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

feat: minor improvement add_form interface

This commit is contained in:
Adrien Waksberg 2017-08-10 23:41:20 +02:00
parent 65db261c00
commit 0195771c76

View file

@ -1,9 +1,17 @@
--- ---
host: <%= options[:host] %> # <%= I18n.t('form.add_item.host') %> # <%= I18n.t('form.add_item.host') %>
user: <%= options[:user] %> # <%= I18n.t('form.add_item.login') %> host: <%= options[:host] %>
group: <%= options[:group] %> # <%= I18n.t('form.add_item.group') %> # <%= I18n.t('form.add_item.login') %>
protocol: <%= options[:protocol] %> # <%= I18n.t('form.add_item.protocol') %><% unless password %> user: <%= options[:user] %>
password: # <%= I18n.t('form.add_item.password') %><% end %> # <%= I18n.t('form.add_item.group') %>
port: <%= options[:port] %> # <%= I18n.t('form.add_item.port') %> group: <%= options[:group] %>
comment: <%= options[:comment] %> # <%= I18n.t('form.add_item.comment') %> # <%= I18n.t('form.add_item.protocol') %>
otp_key: <%= options[:otp] %> # <%= I18n.t('form.add_item.otp_key') %> protocol: <%= options[:protocol] %><% unless password %>
# <%= I18n.t('form.add_item.password') %>
password:<% end %>
# <%= I18n.t('form.add_item.port') %>
port: <%= options[:port] %>
# <%= I18n.t('form.add_item.comment') %>
comment: <%= options[:comment] %>
# <%= I18n.t('form.add_item.otp_key') %>
otp_key: <%= options[:otp] %>