From 29306dd6a41a20210bc30775a437a67649b99038 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 17 Jul 2013 08:15:55 +0300 Subject: [PATCH] improve new branch page --- app/views/projects/branches/new.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml index 8df2c03..37612d3 100644 --- a/app/views/projects/branches/new.html.haml +++ b/app/views/projects/branches/new.html.haml @@ -5,14 +5,14 @@ .control-group = label_tag :branch_name, 'Name for new branch', class: 'control-label' .controls - = text_field_tag :branch_name, nil, placeholder: 'feature/dashboard' + = text_field_tag :branch_name, nil, placeholder: 'feature/dashboard', required: true, tabindex: 1 .control-group = label_tag :ref, 'Create from', class: 'control-label' .controls - = text_field_tag :ref, nil, placeholder: 'master' + = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2 .light branch name or commit SHA .form-actions - = submit_tag 'Create branch', class: 'btn btn-create' + = submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3 = link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel' :javascript -- libgit2 0.21.2