Skip to content

Commit

Permalink
prepare file and email preview #1534
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Oct 18, 2017
1 parent 32e06dd commit a5f306f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions modules/admin/src/resources/dist/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10645,9 +10645,11 @@ zaa.factory('HtmlStorage', function() {
},
template: function () {
return '<span>' +
'<span ng-if="link.type==2">Extern: {{link.value}}</span>' +
'<span ng-if="link.type==1"><show-internal-redirection nav-id="link.value" /></span>' +
'</span>';
'<span ng-if="link.type==1">Intern: <show-internal-redirection nav-id="link.value" /></span>' +
'<span ng-if="link.type==2">Extern: {{link.value}}</span>' +
'<span ng-if="link.type==3">File: <storage-file-display file-id="{{link.value}}"></storage-file-display></span>' +
'<span ng-if="link.type==4">E-Mail: {{link.value}}</span>' +
'</span>';
}
}
});
Expand Down Expand Up @@ -11507,9 +11509,9 @@ zaa.factory('HtmlStorage', function() {
'</div>' +
'</div>' +
'</div>' +
'<modal is-modal-hidden="data.modalState" modal-title="{{label}}">'+
'<modal is-modal-hidden="data.modalState" modal-title="{{label}}"><form ng-submit="data.modalState=1">'+
'<update-form-redirect data="data.model"></update-form-redirect>' +
'<button ng-click="data.modalState=1" class="btn btn-icon btn-save" type="button">'+i18n['js_link_set_value']+'</button>' +
'<button ng-click="data.modalState=1" class="btn btn-icon btn-save" type="submit">'+i18n['js_link_set_value']+'</button></form>' +
'</modal>'+
'</div></div>';
}
Expand Down
12 changes: 7 additions & 5 deletions modules/admin/src/resources/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
},
template: function () {
return '<span>' +
'<span ng-if="link.type==2">Extern: {{link.value}}</span>' +
'<span ng-if="link.type==1"><show-internal-redirection nav-id="link.value" /></span>' +
'</span>';
'<span ng-if="link.type==1">Intern: <show-internal-redirection nav-id="link.value" /></span>' +
'<span ng-if="link.type==2">Extern: {{link.value}}</span>' +
'<span ng-if="link.type==3">File: <storage-file-display file-id="{{link.value}}"></storage-file-display></span>' +
'<span ng-if="link.type==4">E-Mail: {{link.value}}</span>' +
'</span>';
}
}
});
Expand Down Expand Up @@ -911,9 +913,9 @@
'</div>' +
'</div>' +
'</div>' +
'<modal is-modal-hidden="data.modalState" modal-title="{{label}}">'+
'<modal is-modal-hidden="data.modalState" modal-title="{{label}}"><form ng-submit="data.modalState=1">'+
'<update-form-redirect data="data.model"></update-form-redirect>' +
'<button ng-click="data.modalState=1" class="btn btn-icon btn-save" type="button">'+i18n['js_link_set_value']+'</button>' +
'<button ng-click="data.modalState=1" class="btn btn-icon btn-save" type="submit">'+i18n['js_link_set_value']+'</button></form>' +
'</modal>'+
'</div></div>';
}
Expand Down

0 comments on commit a5f306f

Please sign in to comment.