-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1669 Normalize the fields used to update objects
- Loading branch information
Showing
10 changed files
with
180 additions
and
87 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* .custom-field-input dd { | ||
overflow: hidden; | ||
} | ||
div.custom-field-input-wrapper { | ||
max-width: 100%; | ||
text-overflow: ellipsis; | ||
} | ||
*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.updatable-input { | ||
/* border: 1px solid green; */ | ||
} | ||
|
||
.updatable-input .updatable-value { | ||
vertical-align: top; | ||
white-space: pre-wrap | ||
} | ||
|
||
.updatable-input .updatable-input-value-wrapper { | ||
position: relative; | ||
display: inline-block; | ||
border-bottom: 1px solid #fff; | ||
} | ||
|
||
.updatable-input .updatable-input-value-wrapper:hover{ | ||
border-bottom: 1px solid #337ab7; | ||
cursor: pointer; | ||
} | ||
|
||
.updatable-input .updatable-input-value-wrapper .updatable-input-icon { | ||
display: none; | ||
float: right; | ||
margin-left: 10px; | ||
color: #337ab7; | ||
} | ||
|
||
.updatable-input .updatable-input-value-wrapper .updatable-input-icon.lg { | ||
line-height: 18px; | ||
} | ||
|
||
.updatable-input .updatable-input-value-wrapper:hover .updatable-input-icon { | ||
display: block; | ||
} | ||
|
||
.updatable-input.updatable-input-tags { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
<span ng-hide="updatable.updating" ng-init="active = false" ng-mouseenter="active = true" ng-mouseleave="active = false"> | ||
<span ng-if="value!==null && value !==''" style="vertical-align:top" class="updatable-value">{{value | shortDate}}</span> | ||
<span ng-if="value===null || value ===''" style="vertical-align: top; white-space: pre-wrap" class="updatable-value text-warning"><em>Not Specified</em></span> | ||
<small ng-show="active"> | ||
<a style="cursor: pointer;" target="_self" tooltip-popup-delay='500' uib-tooltip="edit"> | ||
<i class="glyphicon glyphicon-pencil" ng-click="edit()"></i> | ||
</a> | ||
</small> | ||
<small> </small> | ||
</span> | ||
<span ng-init="updatable.dropdownOpen=false" ng-show="updatable.updating"> | ||
<div class="updatable-input updatable-input-date"> | ||
<span class="updatable-input-value-wrapper" ng-hide="updatable.updating" ng-click="edit()"> | ||
<span ng-if="value!==null && value !==''" class="updatable-value">{{value | shortDate}}</span> | ||
<span ng-if="value===null || value ===''" class="updatable-value text-warning"><em>Not Specified</em></span> | ||
|
||
<form ng-submit="update()"> | ||
<div class="input-group input-group-sm"> | ||
<input class="input-datetime form-control input-sm" ng-click="dateNow=false" ng-model="humanDate" type="datetime"/> | ||
<span class="input-group-btn"> | ||
<small class="updatable-input-icon"> | ||
<i class="glyphicon glyphicon-pencil"></i> | ||
</small> | ||
</span> | ||
|
||
<form ng-submit="update()" ng-show="updatable.updating"> | ||
<div class="input-group input-group-sm"> | ||
<input class="input-datetime form-control input-sm" ng-click="dateNow=false" ng-model="humanDate" type="datetime"/> | ||
<span class="input-group-btn"> | ||
<span uib-btn-checkbox="" class="btn btn-sm btn-primary" ng-model="dateNow"> | ||
Now | ||
</span> | ||
<button class="btn btn-sm btn-default" type="submit"> | ||
<i class="text-success glyphicon glyphicon-ok"></i> | ||
</button> | ||
Now | ||
</span> | ||
<button class="btn btn-sm btn-default" type="submit"> | ||
<i class="text-success glyphicon glyphicon-ok"></i> | ||
</button> | ||
<button class="btn btn-sm btn-default" type="button" ng-click="cancel()"> | ||
<i class="text-danger glyphicon glyphicon-remove"></i> | ||
</button> | ||
<i class="text-danger glyphicon glyphicon-remove"></i> | ||
</button> | ||
</span> | ||
</div> | ||
</form> | ||
</span> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
<span ng-hide="updatable.updating" ng-init="active = false" ng-mouseenter="active = true" ng-mouseleave="active = false"> | ||
<span ng-if="value!==null && value !==''" style="vertical-align: top; white-space: pre-wrap" class="updatable-value">{{value}}</span> | ||
<span ng-if="value===null || value ===''" style="vertical-align: top; white-space: pre-wrap" class="updatable-value text-warning"><em>Not Specified</em></span> | ||
<small ng-show="active"> | ||
<a tooltip-popup-delay='500' uib-tooltip="edit" target="_self" style="cursor: pointer;"> | ||
<i class="glyphicon glyphicon-pencil" ng-click="edit()"></i> | ||
</a> | ||
</small> | ||
<small ng-hide="active"> </small> | ||
</span> | ||
<span ng-show="updatable.updating" ng-init="updatable.dropdownOpen=false"> | ||
<form ng-submit="update()"> | ||
<div class="updatable-input updatable-input-text"> | ||
<span class="updatable-input-value-wrapper" ng-hide="updatable.updating" ng-click="edit()"> | ||
<span ng-if="value!==null && value !==''" class="updatable-value">{{value}}</span> | ||
<span ng-if="value===null || value ===''" class="updatable-value text-warning"><em>Not Specified</em></span> | ||
|
||
<small class="updatable-input-icon"> | ||
<i class="glyphicon glyphicon-pencil"></i> | ||
</small> | ||
</span> | ||
|
||
<form ng-submit="update()" ng-show="updatable.updating"> | ||
<div class="input-group input-group-sm"> | ||
|
||
<input type="{{ {'float': 'number', 'integer': 'number', 'text': 'text'}[inputType] }}" step="{{ {'float':'.01', 'integer': '1'}[inputType] }}" class="form-control input-sm" placeholder="{{placeholder}}" ng-model="value" autofocus="autofocus"> | ||
|
||
<span class="input-group-btn"> | ||
<button class="btn btn-sm btn-default" type="submit"> | ||
<i class="text-success glyphicon glyphicon-ok"></i> | ||
</button> | ||
<button class="btn btn-sm btn-default" type="button" ng-click="cancel()"> | ||
<i class="text-danger glyphicon glyphicon-remove"></i> | ||
</button> | ||
</span> | ||
</span> | ||
</div> | ||
</form> | ||
</span> | ||
</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