Browse Source

[repo/create] Minor redesign: Single segment

Back to single form segment.  "Initial Files" header converted to an
inline label without a field.  Using dividers to separate sections and
buttons.
Achilleas Koutsou 5 years ago
parent
commit
b1ac78c85a
1 changed files with 7 additions and 7 deletions
  1. 7 7
      templates/repo/create.tmpl

+ 7 - 7
templates/repo/create.tmpl

@@ -56,12 +56,12 @@
 						<span class="help">{{.i18n.Tr "repo.repo_description_helper" | Safe}}</span>
 						<span class="help">{{.i18n.Tr "repo.repo_description_helper" | Safe}}</span>
 						<span class="help">{{.i18n.Tr "repo.repo_description_length"}}: <span id="descLength"></span></span>
 						<span class="help">{{.i18n.Tr "repo.repo_description_length"}}: <span id="descLength"></span></span>
 					</div>
 					</div>
-				</div>
 
 
-				<h3 class="ui attached header">
-					Initial Files
-				</h3>
-				<div class="ui attached segment">
+					<div class="ui divider"></div>
+
+					<div class="inline field">
+						<label><h3>Initial files</h3></label>
+					</div>
 					<div class="inline field" data-tooltip={{.i18n.Tr "repo.repo_gitignore_tooltip"}}>
 					<div class="inline field" data-tooltip={{.i18n.Tr "repo.repo_gitignore_tooltip"}}>
 						<label>.gitignore</label>
 						<label>.gitignore</label>
 						<a target="_blank" href="https://git-scm.com/docs/gitignore"><span class="octicon octicon-question"></span></a>
 						<a target="_blank" href="https://git-scm.com/docs/gitignore"><span class="octicon octicon-question"></span></a>
@@ -108,9 +108,9 @@
 							<label>{{.i18n.Tr "repo.auto_init"}}</label>
 							<label>{{.i18n.Tr "repo.auto_init"}}</label>
 						</div>
 						</div>
 					</div>
 					</div>
-				</div>
 
 
-				<div class="ui attached segment">
+					<div class="ui divider"></div>
+
 					<div class="inline field">
 					<div class="inline field">
 						<label></label>
 						<label></label>
 						<button class="ui green button">
 						<button class="ui green button">