[logaling-commit] logaling/logaling-server [master] Apply design

Back to archive index

SHIMADA Koji null+****@clear*****
Wed Sep 26 17:12:31 JST 2012


SHIMADA Koji	2012-09-26 17:12:31 +0900 (Wed, 26 Sep 2012)

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

  Merged bf95d1c: Merge branch 'apply-design' of github.com:logaling/logaling-server into apply-design

  Log:
    Apply design
    
    /terms/edit.html.haml

  Modified files:
    app/views/terms/edit.html.haml

  Modified: app/views/terms/edit.html.haml (+28 -17)
===================================================================
--- app/views/terms/edit.html.haml    2012-09-26 17:07:02 +0900 (eaf491c)
+++ app/views/terms/edit.html.haml    2012-09-26 17:12:31 +0900 (d5f099c)
@@ -1,20 +1,31 @@
-%h1 Edit Term
-= form_for @term, url: user_glossary_term_path(current_user, @user_glossary, @term.id), method: :put do |f|
-  -if****@term*****?
-    #error_explanation
-      %h2= "#{pluralize(@term.errors.count, "error")} prohibited this term from being saved:"
-      %ul
-        -****@term*****_messages.each do |msg|
-          %li= msg
-
+.container
+  %h1
+    = @user_glossary.glossary_name
+    = @user_glossary.source_language
+    = @user_glossary.target_language
+  %h2
+    用語の編集
   .well
-    = f.label :source_term, "Source term:"
-    = f.text_field :source_term
-    = f.label :target_term, "Target term:"
-    = f.text_field :target_term
-    = f.label :note, "Note:"
-    = f.text_field :note
+    = form_for @term, url: user_glossary_term_path(current_user, @user_glossary, @term.id), method: :put, :html => { :class => 'form-horizontal' } do |f|
+      -if****@term*****?
+        #error_explanation
+          %h2= "#{pluralize(@term.errors.count, "error")} prohibited this term from being saved:"
+          %ul
+            -****@term*****_messages.each do |msg|
+              %li= msg
+
+      .control-group
+        = f.label :source_term, "Source term:", :class => 'control-label required'
+        = f.text_field :source_term
+      .control-group
+        = f.label :target_term, "Target term:", :class => 'control-label required'
+        = f.text_field :target_term
+      .control-group
+        = f.label :note, "Note:", :class => 'control-label'
+        = f.text_field :note
 
-  .actions
-    = f.submit 'Save', :class => 'btn btn-primary'
+      .control-group
+        .controls
+          .btn-group.actions
+            = f.submit '更新する', :class => 'btn btn-primary'
 
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index