-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align create buttons styling (#11352)
* Added button for cancelling dictionary create action * Use hideMenu * Align dictionary create with the other creates * Align import documenttype * Align for data type folder create * Align document type create buttons * Forgot small ng-show * Align create media folder buttons * Align create macro buttons * Align create relation buttons * Align create partial view macro folder buttons * Align partial view folder create buttons * Align create scripts folder buttons * Align create scripts folder buttons * Use primary instead of success
- Loading branch information
1 parent
93720c9
commit 03b2aed
Showing
15 changed files
with
618 additions
and
485 deletions.
There are no files selected for viewing
100 changes: 56 additions & 44 deletions
100
src/Umbraco.Web.UI.Client/src/views/datatypes/create.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,66 @@ | ||
<div ng-controller="Umbraco.Editors.DataType.CreateController"> | ||
<div class="umbracoDialog umb-dialog-body with-footer" ng-cloak> | ||
|
||
<div class="umb-pane" ng-show="!model.creatingFolder"> | ||
<h5><localize key="create_createUnder">Create an item under</localize> {{currentNode.name}}</h5> | ||
<div ng-show="!model.creatingFolder"> | ||
<div class="umbracoDialog umb-dialog-body with-footer" ng-cloak> | ||
<div class="umb-pane"> | ||
<h5><localize key="create_createUnder">Create an item under</localize> {{currentNode.name}}</h5> | ||
|
||
<ul class="umb-actions umb-actions-child"> | ||
<li data-element="action-data-type" class="umb-action"> | ||
<button type="button" class="umb-action-link umb-outline btn-reset" ng-click="createDataType()" umb-auto-focus> | ||
<umb-icon icon="icon-autofill" class="icon large"></umb-icon> | ||
<span class="menu-label"> | ||
<localize key="create_newDataType">New data type</localize> | ||
</span> | ||
</button> | ||
</li> | ||
<li data-element="action-folder" class="umb-action"> | ||
<button type="button" class="umb-action-link umb-outline btn-reset" ng-click="showCreateFolder()"> | ||
<umb-icon icon="icon-folder" class="icon large"></umb-icon> | ||
<span class="menu-label"> | ||
<localize key="create_newFolder">New folder</localize>... | ||
</span> | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="umb-pane" ng-show="model.creatingFolder"> | ||
<form novalidate name="createFolderForm" | ||
ng-submit="createContainer()" | ||
val-form-manager> | ||
|
||
<umb-control-group label="Enter a folder name" hide-label="false"> | ||
<input | ||
type="text" | ||
name="folderName" | ||
ng-model="model.folderName" | ||
class="umb-textstring textstring input-block-level" | ||
focus-when="{{model.creatingFolder}}" | ||
required /> | ||
</umb-control-group> | ||
<ul class="umb-actions umb-actions-child"> | ||
<li data-element="action-data-type" class="umb-action"> | ||
<button type="button" class="umb-action-link umb-outline btn-reset" ng-click="createDataType()" umb-auto-focus> | ||
<umb-icon icon="icon-autofill" class="icon large"></umb-icon> | ||
<span class="menu-label"> | ||
<localize key="create_newDataType">New data type</localize> | ||
</span> | ||
</button> | ||
</li> | ||
<li data-element="action-folder" class="umb-action"> | ||
<button type="button" class="umb-action-link umb-outline btn-reset" ng-click="showCreateFolder()"> | ||
<umb-icon icon="icon-folder" class="icon large"></umb-icon> | ||
<span class="menu-label"> | ||
<localize key="create_newFolder">New folder</localize>... | ||
</span> | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-primary"><localize key="general_create">Create</localize></button> | ||
</form> | ||
</div> | ||
|
||
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar"> | ||
<button type="button" class="btn btn-info" ng-click="close()"> | ||
<localize key="buttons_somethingElse">Do something else</localize> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-if="!model.creatingFolder"> | ||
<button type="button" class="btn btn-info" ng-click="close()"> | ||
<localize key="buttons_somethingElse">Do something else</localize> | ||
</button> | ||
<div ng-show="model.creatingFolder"> | ||
<form novalidate name="createFolderForm" | ||
ng-submit="createContainer()" | ||
val-form-manager> | ||
<div class="umbracoDialog umb-dialog-body with-footer" ng-cloak> | ||
<div class="umb-pane" ng-show="model.creatingFolder"> | ||
<umb-control-group label="Enter a folder name" hide-label="false"> | ||
<input type="text" | ||
name="folderName" | ||
ng-model="model.folderName" | ||
class="umb-textstring textstring input-block-level" | ||
focus-when="{{model.creatingFolder}}" | ||
required /> | ||
</umb-control-group> | ||
</div> | ||
</div> | ||
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar"> | ||
<umb-button type="button" | ||
button-style="link" | ||
action="close()" | ||
label-key="general_close"> | ||
</umb-button> | ||
<umb-button type="submit" | ||
button-style="primary" | ||
label-key="general_create"> | ||
</umb-button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> |
46 changes: 28 additions & 18 deletions
46
src/Umbraco.Web.UI.Client/src/views/dictionary/create.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
<div class="umbracoDialog umb-dialog-body with-footer" ng-controller="Umbraco.Editors.Dictionary.CreateController as vm"> | ||
|
||
<div class="umb-pane"> | ||
<h5 tabindex="0"><localize key="create_createUnder">Create an item under</localize> {{currentNode.name}}</h5> | ||
</div> | ||
|
||
<div class="umb-pane"> | ||
<form novalidate name="createDictionaryForm" | ||
ng-submit="vm.createItem()" | ||
val-form-manager> | ||
<div class="umbracoDialog" ng-controller="Umbraco.Editors.Dictionary.CreateController as vm"> | ||
|
||
<umb-control-group label="@general_name" hide-label="false" alias="itemKey"> | ||
<input type="text" name="itemKey" id="itemKey" ng-model="vm.itemKey" class="umb-textstring textstring input-block-level" | ||
umb-auto-focus required | ||
maxlength="1000"/> | ||
</umb-control-group> | ||
<form novalidate name="createDictionaryForm" | ||
ng-submit="vm.createItem()" | ||
val-form-manager> | ||
<div class="umb-dialog-body with-footer"> | ||
<div class="umb-pane"> | ||
<h5 tabindex="0"><localize key="create_createUnder">Create an item under</localize> {{currentNode.name}}</h5> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-primary"><localize key="general_create">Create</localize></button> | ||
</form> | ||
</div> | ||
<div class="umb-pane"> | ||
<umb-control-group label="@general_name" hide-label="false" alias="itemKey"> | ||
<input type="text" name="itemKey" id="itemKey" ng-model="vm.itemKey" class="umb-textstring textstring input-block-level" | ||
umb-auto-focus required | ||
maxlength="1000" /> | ||
</umb-control-group> | ||
</div> | ||
</div> | ||
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar"> | ||
<umb-button type="button" | ||
button-style="link" | ||
action="vm.close()" | ||
label-key="general_close"> | ||
</umb-button> | ||
<umb-button type="submit" | ||
button-style="primary" | ||
label-key="general_create"> | ||
</umb-button> | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.