Changed filters to readable one. Styled some stuff
This commit is contained in:
parent
4a6596af27
commit
b9ff0c79b4
15 changed files with 96 additions and 48 deletions
|
@ -13,8 +13,8 @@
|
|||
= f.submit project.new_record? ? 'Create project' : 'Save Project', class: "btn primary"
|
||||
|
||||
%hr
|
||||
.alert.alert-info
|
||||
%h5 Advanced settings:
|
||||
.adv_settings
|
||||
%h6 Advanced settings:
|
||||
.clearfix
|
||||
= f.label :path do
|
||||
Git Clone
|
||||
|
@ -42,8 +42,9 @@
|
|||
.input= f.select(:default_branch, project.heads.map(&:name), {}, style: "width:210px;")
|
||||
|
||||
- unless project.new_record?
|
||||
.alert.alert-info
|
||||
%h5 Features:
|
||||
%hr
|
||||
.adv_settings
|
||||
%h6 Features:
|
||||
|
||||
.clearfix
|
||||
= f.label :issues_enabled, "Issues"
|
||||
|
@ -63,7 +64,8 @@
|
|||
|
||||
- unless project.new_record?
|
||||
.actions
|
||||
= f.submit 'Save Project', class: "btn primary"
|
||||
= f.submit 'Save Project', class: "btn save-btn"
|
||||
= link_to 'Cancel', admin_projects_path, class: "btn cancel-btn"
|
||||
|
||||
|
||||
|
||||
|
|
29
app/views/admin/projects/_new_form.html.haml
Normal file
29
app/views/admin/projects/_new_form.html.haml
Normal file
|
@ -0,0 +1,29 @@
|
|||
= form_for [:admin, @admin_project] do |f|
|
||||
- if @admin_project.errors.any?
|
||||
.alert-message.block-message.error
|
||||
%span= @admin_project.errors.full_messages.first
|
||||
.clearfix.project_name_holder
|
||||
= f.label :name do
|
||||
Project name is
|
||||
.input
|
||||
= f.text_field :name, placeholder: "Example Project", class: "xxlarge"
|
||||
= f.submit 'Create project', class: "btn primary project-submit"
|
||||
|
||||
%hr
|
||||
%div.adv_settings
|
||||
%h6 Advanced settings:
|
||||
.clearfix
|
||||
= f.label :path do
|
||||
Git Clone
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= Gitlab.config.ssh_path
|
||||
= f.text_field :path, placeholder: "example_project", disabled: !@admin_project.new_record?
|
||||
%span.add-on= ".git"
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url
|
||||
= f.text_field :code, placeholder: "example"
|
|
@ -1,3 +1,12 @@
|
|||
%h3.page_title New project
|
||||
%hr
|
||||
= render 'form', project: @admin_project
|
||||
.project_new_holder
|
||||
%h3.page_title
|
||||
New Project
|
||||
%hr
|
||||
= render 'new_form'
|
||||
%div.save-project-loader.hide
|
||||
%center
|
||||
= image_tag "ajax_loader.gif"
|
||||
%h3 Creating project & repository. Please wait a few minutes
|
||||
|
||||
:javascript
|
||||
$(function(){ new Projects(); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue