I'm wanting to add the word approximate next to all date fields. I know I can do this through a custom field, but we already have a bunch of things in place at this point and seems easier to just edit what's there.
I went into /umbraco/views/propertyeditors/datepicker/datepicker.html and added the text in there, but it doesn't seem to show up on the backend. I've cleared all the temp files in the app_data, updated the clientdependancy config, cleared the cache in my browser, restarted IIS. None of that seems to have done the trick.
Updating backoffice property editor Views
I'm wanting to add the word approximate next to all date fields. I know I can do this through a custom field, but we already have a bunch of things in place at this point and seems easier to just edit what's there.
I went into /umbraco/views/propertyeditors/datepicker/datepicker.html and added the text in there, but it doesn't seem to show up on the backend. I've cleared all the temp files in the app_data, updated the clientdependancy config, cleared the cache in my browser, restarted IIS. None of that seems to have done the trick.
Hi,
You can change the text or do the following:
Try this (\Umbraco\Views\directives\umb-property.html):
<div class="umb-property">
<ng-form name="propertyForm">
<div class="control-group umb-control-group" ng-class="{hidelabel:property.hideLabel}" >
<val-property-msg property="property"></val-property-msg>
<div class="umb-el-wrap">
<label class="control-label" ng-hide="property.hideLabel" for="{{property.alias}}">
<span ng-show="{{property.alias == 'date'}}">
approximate
</span> {{property.label}}
<small>{{property.description}}</small>
</label>
<div class="controls controls-row" ng-transclude>
</div>
</div>
</div>
</ng-form>
</div>
If you want it right next to the field (right or left) just do this:
/umbraco/views/propertyeditors/datepicker/datepicker.html
<div class="umb-editor umb-datepicker" ng-controller="Umbraco.PropertyEditors.DatepickerController">
<span>
approximate
</span>
<div class="input-append date datepicker" style="position: relative;" id="datepicker{{model.alias}}">
<input name="datepicker" data-format="{{model.config.format}}" type="text"
ng-model="model.value"
ng-required="model.validation.mandatory"
val-server="value" />
<span class="add-on">
<i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
</span>
</div>
<span class="help-inline" val-msg-for="datepicker" val-toggle-msg="required">Required</span>
<span class="help-inline" val-msg-for="datepicker" val-toggle-msg="valServer">{{propertyForm.datepicker.errorMsg}}</span>
</div>
is working on a reply...