Skip to content

Commit 1e6caa9

Browse files
authored
Added mandatory styles to add organizations page (#8500)
1 parent 6b07d75 commit 1e6caa9

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
.page-add-organization {
2-
.owner-image {
3-
margin-top: 6px;
4-
margin-bottom: 6px;
5-
}
6-
}
2+
.owner-image {
3+
margin-top: 6px;
4+
margin-bottom: 6px;
5+
}
6+
7+
.required:after {
8+
color: red;
9+
content: " *";
10+
}
11+
}

src/NuGetGallery/Views/Organizations/Add.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646
@Html.AntiForgeryToken()
4747

4848
<div class="form-group @Html.HasErrorFor(m => m.OrganizationName)" id="@organizationNameTextGroupId">
49-
@Html.ShowLabelFor(m => m.OrganizationName)
49+
<span class="required">@Html.ShowLabelFor(m => m.OrganizationName)</span>
5050
@Html.ShowTextBoxFor(m => m.OrganizationName)
5151
<span class="ms-font-s">This will be your organization account on <i id="@organizationNameTextId">@Url.User("{username}", relativeUrl: false)</i>.</span>
5252
@Html.ShowValidationMessagesFor(m => m.OrganizationName)
5353
</div>
5454

5555
<div class="form-group @Html.HasErrorFor(m => m.OrganizationEmailAddress)" id="@emailBoxGroupId">
56-
@Html.ShowLabelFor(m => m.OrganizationEmailAddress)
56+
<span class="required">@Html.ShowLabelFor(m => m.OrganizationEmailAddress)</span>
5757
@Html.ShowTextBoxFor(m => m.OrganizationEmailAddress)
5858
<span class="ms-font-s">Users can contact your organization at this email address.</span>
5959
@Html.ShowValidationMessagesFor(m => m.OrganizationEmailAddress)

0 commit comments

Comments
 (0)