[logaling-commit] logaling/logaling-server [master] Markup form for github project

アーカイブの一覧に戻る

SHIMADA Koji null+****@clear*****
Mon Oct 8 10:17:45 JST 2012


SHIMADA Koji	2012-10-08 10:17:45 +0900 (Mon, 08 Oct 2012)

  New Revision: befcc765c4c6db4b55fb871ce44e1b07979ffc1c
  https://github.com/logaling/logaling-server/commit/befcc765c4c6db4b55fb871ce44e1b07979ffc1c

  Log:
    Markup form for github project

  Modified files:
    app/views/github_project_memberships/_form.html.haml
    app/views/github_projects/_form.html.haml

  Modified: app/views/github_project_memberships/_form.html.haml (+9 -5)
===================================================================
--- app/views/github_project_memberships/_form.html.haml    2012-10-05 14:35:45 +0900 (c249928)
+++ app/views/github_project_memberships/_form.html.haml    2012-10-08 10:17:45 +0900 (e4326e3)
@@ -8,12 +8,16 @@
 
   .control-group
     .control-label
-      http://github.com/
+      プロジェクト
     .controls
-      = f.text_field :project_owner#, :class => 'conrols'
-      \/
-      = f.text_field :project_name
-      = f.hidden_field :user_id, value: current_user.id
+      .input-prepend.input-append
+        %span.add-on
+          http://github.com/
+        = f.text_field :project_owner, placeholder: 'Owner'
+        %span.add-on
+          \/
+        = f.text_field :project_name, placeholder: 'Repository name'
+        = f.hidden_field :user_id, value: current_user.id
 
   .control-group
     .controls

  Modified: app/views/github_projects/_form.html.haml (+8 -4)
===================================================================
--- app/views/github_projects/_form.html.haml    2012-10-05 14:35:45 +0900 (3100743)
+++ app/views/github_projects/_form.html.haml    2012-10-08 10:17:45 +0900 (114422e)
@@ -9,11 +9,15 @@
   -# TODO should be just one text field
   .control-group
     .control-label
-      http://github.com/
+      プロジェクト
     .controls
-      = f.text_field :owner
-      \/
-      = f.text_field :name
+      .input-prepend.input-append
+        %span.add-on
+          http://github.com/
+        = f.text_field :owner, placeholder: 'Owner'
+        %span.add-on
+          \/
+        = f.text_field :name, placeholder: 'Repository name'
 
   .control-group
     .controls
-------------- next part --------------
An HTML attachment was scrubbed...
ダウンロード 



More information about the logaling-commit mailing list
アーカイブの一覧に戻る