SHIMADA Koji
null+****@clear*****
Wed Sep 26 17:16:55 JST 2012
SHIMADA Koji 2012-09-26 17:16:55 +0900 (Wed, 26 Sep 2012) New Revision: 761d4abcad81f989cf838a03d709f10728fc3b62 https://github.com/logaling/logaling-server/commit/761d4abcad81f989cf838a03d709f10728fc3b62 Merged bf95d1c: Merge branch 'apply-design' of github.com:logaling/logaling-server into apply-design Log: Apply design /user_glossaries/new.html.haml Modified files: app/views/user_glossaries/_form.html.haml app/views/user_glossaries/new.html.haml Modified: app/views/user_glossaries/_form.html.haml (+11 -7) =================================================================== --- app/views/user_glossaries/_form.html.haml 2012-09-26 17:12:31 +0900 (d19d4ac) +++ app/views/user_glossaries/_form.html.haml 2012-09-26 17:16:55 +0900 (3f6a480) @@ -1,4 +1,4 @@ -= form_for @user_glossary do |f| += form_for @user_glossary, :html => { :class => 'form-horizontal' } do |f| -if @user_glossary.errors.any? #error_explanation %h2= "#{pluralize(@user_glossary.errors.count, "error")} prohibited this user_glossary from being saved:" @@ -6,13 +6,17 @@ - @user_glossary.errors.full_messages.each do |msg| %li= msg - .well - = f.label :name, "Glossary name:" + .control-group + = f.label :name, "Glossary name:", :class => 'control-label required' = f.text_field :name - = f.label :source_language, "Source language:" + .control-group + = f.label :source_language, "Source language:", :class => 'control-label required' = f.text_field :source_language - = f.label :target_language, "Target language:" + .control-group + = f.label :target_language, "Target language:", :class => 'control-label required' = f.text_field :target_language - .actions - = f.submit 'Save', :class => 'btn btn-primary' + .control-group + .controls + .btn-group.actions + = f.submit '登録する', :class => 'btn btn-lerge' Modified: app/views/user_glossaries/new.html.haml (+4 -2) =================================================================== --- app/views/user_glossaries/new.html.haml 2012-09-26 17:12:31 +0900 (4ce4ae1) +++ app/views/user_glossaries/new.html.haml 2012-09-26 17:16:55 +0900 (448c531) @@ -1,2 +1,4 @@ -%h1 New UserGlossary -= render 'form' +.container + %h2 用語集の新規作成 + .well + = render 'form' -------------- next part -------------- An HTML attachment was scrubbed... Download