OSDN Git Service

Missing descriptions added
authorAndrew8xx8 <avk@8xx8.ru>
Tue, 19 Feb 2013 19:02:25 +0000 (23:02 +0400)
committerAndrew8xx8 <avk@8xx8.ru>
Thu, 28 Feb 2013 13:37:02 +0000 (17:37 +0400)
app/views/admin/teams/edit.html.haml
app/views/admin/teams/new.html.haml
app/views/groups/edit.html.haml
app/views/groups/new.html.haml
app/views/groups/show.html.haml
app/views/teams/edit.html.haml
app/views/teams/new.html.haml
app/views/teams/show.html.haml

index a48a369..0a3d993 100644 (file)
@@ -10,7 +10,7 @@
     .input
       = f.text_field :name, placeholder: "Example Team", class: "xxlarge"
 
-  .clearfix.team_description_holder
+  .clearfix.team-description-holder
     = f.label :description, "Details"
     .input
       = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
index a852b4c..1c90cb2 100644 (file)
@@ -10,7 +10,7 @@
     .input
       = f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
 
-  .clearfix.team_description_holder
+  .clearfix.team-description-holder
     = f.label :description, "Details"
     .input
       = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
index 41ebf60..828a9b4 100644 (file)
@@ -9,8 +9,15 @@
       Group name is
     .input
       = f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
-      &nbsp;
-      = f.submit 'Save group', class: "btn btn-save"
+
+  .clearfix.group_description_holder
+    = f.label :description, "Details"
+    .input
+      = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
+
+  .form-actions
+    = f.submit 'Save group', class: "btn btn-save"
+
 %hr
 
 
index 73be474..9308e9a 100644 (file)
@@ -9,8 +9,16 @@
       Group name is
     .input
       = f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
-      &nbsp;
-      = f.submit 'Create group', class: "btn btn-create"
+
+  .clearfix.group_description_holder
+    = f.label :description, "Details"
+    .input
+      = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
+
+  .form-actions
+    = f.submit 'Create group', class: "btn btn-primary"
+
+
   %hr
   .padded
     %ul
index a140b40..fe08e0b 100644 (file)
@@ -1,3 +1,8 @@
+- if @group.description.present?
+  .description
+    = @group.description
+  %hr
+
 .projects
   .activities.span8
     = render "events/event_last_push", event: @last_push
index 751fe94..5491993 100644 (file)
         .input
           = f.text_field :name, placeholder: "Ex. OpenSource", class: "xlarge left"
 
+      .clearfix.team-description-holder
+        = f.label :description, "Details"
+        .input
+          = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
+
       .clearfix
         = f.label :path do
           Team path is
         .input
           = f.text_field :path, placeholder: "opensource", class: "xlarge left"
+
       .form-actions
-        = f.submit 'Save team changes', class: "btn btn-save"
+        = f.submit 'Save team changes', class: "btn btn-primary"
+        = link_to 'Delete team', team_path(@team), method: :delete, confirm: "You are shure?", class: "btn btn-remove pull-right"
   .span5
     .ui-box
       %h5.title Remove team
@@ -26,4 +33,3 @@
         %p
           Removed team can not be restored!
         = link_to 'Remove team', team_path(@team), method: :delete, confirm: "You are sure?", class: "btn btn-remove btn-small"
-
index 7089f79..332a6a5 100644 (file)
@@ -9,8 +9,15 @@
       Team name is
     .input
       = f.text_field :name, placeholder: "Ex. Ruby Developers", class: "xxlarge left"
-      &nbsp;
-      = f.submit 'Create team', class: "btn btn-create"
+
+  .clearfix.team-description-holder
+    = f.label :description, "Details"
+    .input
+      = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
+
+  .form-actions
+    = f.submit 'Create team', class: "btn btn-create"
+
   %hr
   .padded
     %ul
index d6e80e2..eef13cb 100644 (file)
@@ -1,3 +1,8 @@
+- if @group.description.present?
+  .description
+    = @group.description
+  %hr
+
 .projects
   .activities.span8
     = link_to dashboard_path, class: 'btn btn-tiny' do