2016-02-22 14:49:16 -05:00
= form_for @appearance, url: admin_appearances_path, html: { class: 'form-horizontal'} do |f|
2016-04-04 21:25:38 -04:00
= form_errors(@appearance)
2016-02-22 14:49:16 -05:00
2017-11-22 08:48:38 -05:00
%fieldset.app_logo
%legend
Navigation bar:
.form-group
= f.label :header_logo, 'Header logo', class: 'control-label'
.col-sm-10
- if @appearance.header_logo?
= image_tag @appearance.header_logo_url, class: 'appearance-light-logo-preview'
- if @appearance.persisted?
%br
= link_to 'Remove header logo', header_logos_admin_appearances_path, data: { confirm: "Header logo will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-logo"
%hr
= f.hidden_field :header_logo_cache
= f.file_field :header_logo, class: ""
.hint
Maximum file size is 1MB. Pages are optimized for a 28px tall header logo
2016-02-22 14:49:16 -05:00
%fieldset.sign-in
%legend
Sign in/Sign up pages:
.form-group
= f.label :title, class: 'control-label'
.col-sm-10
= f.text_field :title, class: "form-control"
.form-group
= f.label :description, class: 'control-label'
.col-sm-10
= f.text_area :description, class: "form-control", rows: 10
.hint
2016-08-25 10:19:14 -04:00
Description parsed with #{link_to "GitLab Flavored Markdown", help_page_path('user/markdown'), target: '_blank'}.
2016-02-22 14:49:16 -05:00
.form-group
= f.label :logo, class: 'control-label'
.col-sm-10
- if @appearance.logo?
= image_tag @appearance.logo_url, class: 'appearance-logo-preview'
- if @appearance.persisted?
%br
2017-09-19 03:05:31 -04:00
= link_to 'Remove logo', logo_admin_appearances_path, data: { confirm: "Logo will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-logo"
2016-02-22 14:49:16 -05:00
%hr
= f.hidden_field :logo_cache
= f.file_field :logo, class: ""
.hint
Maximum file size is 1MB. Pages are optimized for a 640x360 px logo.
2017-11-22 08:48:38 -05:00
%fieldset
2016-02-22 14:49:16 -05:00
%legend
2017-11-22 08:48:38 -05:00
New project pages:
2016-02-22 14:49:16 -05:00
.form-group
2017-11-22 08:48:38 -05:00
= f.label :new_project_guidelines, class: 'control-label'
2016-02-22 14:49:16 -05:00
.col-sm-10
2017-11-22 08:48:38 -05:00
= f.text_area :new_project_guidelines, class: "form-control", rows: 10
2016-02-22 14:49:16 -05:00
.hint
2017-11-22 08:48:38 -05:00
Guidelines parsed with #{link_to "GitLab Flavored Markdown", help_page_path('user/markdown'), target: '_blank'}.
2016-02-22 14:49:16 -05:00
.form-actions
2016-06-20 05:50:36 -04:00
= f.submit 'Save', class: 'btn btn-save append-right-10'
2016-02-22 14:49:16 -05:00
- if @appearance.persisted?
2017-11-22 08:48:38 -05:00
Preview last save:
= link_to 'Sign-in page', preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
= link_to 'New project page', new_project_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
2016-02-22 14:49:16 -05:00
- if @appearance.updated_at
%span.pull-right
Last edit #{time_ago_with_tooltip(@appearance.updated_at)}