|
20 | 20 | <div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'renderBody' }">
|
21 | 21 | <umb-icon icon="icon-check" class="icon"></umb-icon>
|
22 | 22 | </div>
|
23 |
| - |
24 |
| - <div class="umb-insert-code-box__title"><localize key="template_renderBody"></localize></div> |
25 |
| - |
| 23 | + |
| 24 | + <div class="umb-insert-code-box__title"><localize key="template_renderBody">Render child template</localize></div> |
| 25 | + |
26 | 26 | <div class="umb-insert-code-box__description">
|
27 |
| - <localize key="template_renderBodyDesc"></localize> |
| 27 | + <localize key="template_renderBodyDesc">Renders the contents of a child template, by inserting a <code>@RenderBody()</code> placeholder.</localize> |
28 | 28 | </div>
|
29 | 29 | </div>
|
30 |
| - |
| 30 | + |
31 | 31 | <div class="umb-insert-code-box" ng-click="vm.select('renderSection')">
|
32 |
| - |
| 32 | + |
33 | 33 | <div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'renderSection' }">
|
34 | 34 | <umb-icon icon="icon-check" class="icon"></umb-icon>
|
35 | 35 | </div>
|
36 |
| - <div class="umb-insert-code-box__title"><localize key="template_renderSection"></localize></div> |
| 36 | + <div class="umb-insert-code-box__title"><localize key="template_renderSection">Render a named section</localize></div> |
37 | 37 | <div class="umb-insert-code-box__description">
|
38 |
| - <localize key="template_renderSectionDesc"></localize> |
| 38 | + <localize key="template_renderSectionDesc">Renders a named area of a child template, by inserting a <code>@RenderSection(name)</code> placeholder. |
| 39 | + This renders an area of a child template which is wrapped in a corresponding <code>@section [name]{ ... }</code> definition. |
| 40 | + </localize> |
39 | 41 | </div>
|
40 |
| - |
| 42 | + |
41 | 43 | <div ng-if="model.insertType === 'renderSection'" style="margin-top: 20px;">
|
42 | 44 | <div style="margin-bottom: 20px;">
|
43 |
| - <label class="bold"><localize key="template_sectionName"></localize> <span class="red">*</span></label> |
| 45 | + <label class="bold"><localize key="template_sectionName">Section Name</localize> <span class="red">*</span></label> |
44 | 46 | <input type="text" name="renderSectionName" class="-full-width-input" ng-model="model.renderSectionName" required umb-auto-focus />
|
45 | 47 | <span ng-messages="templateSectionsForm.renderSectionName.$error" show-validation-on-submit>
|
46 |
| - <small class="red" ng-message="required"><localize key="required"></localize></small> |
| 48 | + <small class="red" ng-message="required"><localize key="required">Required</localize></small> |
47 | 49 | </span>
|
48 | 50 | </div>
|
49 |
| - |
| 51 | + |
50 | 52 | <div>
|
51 | 53 | <div class="flex">
|
52 | 54 | <umb-checkbox model="model.mandatoryRenderSection"
|
|
55 | 57 | </div>
|
56 | 58 |
|
57 | 59 | <div class="umb-insert-code-box__description">
|
58 |
| - <localize key="template_sectionMandatoryDesc"></localize> |
| 60 | + <localize key="template_sectionMandatoryDesc">If mandatory, the child template must contain a <code>@section</code> definition, otherwise an error is shown.</localize> |
59 | 61 | </div>
|
60 | 62 | </div>
|
61 | 63 | </div>
|
62 |
| - |
| 64 | + |
63 | 65 | </div>
|
64 |
| - |
| 66 | + |
65 | 67 | <div class="umb-insert-code-box" ng-click="vm.select('addSection')">
|
66 |
| - |
| 68 | + |
67 | 69 | <div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'addSection' }">
|
68 | 70 | <umb-icon icon="icon-check" class="icon"></umb-icon>
|
69 | 71 | </div>
|
70 |
| - <div class="umb-insert-code-box__title"><localize key="template_defineSection"></localize></div> |
| 72 | + <div class="umb-insert-code-box__title"><localize key="template_defineSection">Define a named section</localize></div> |
71 | 73 | <div class="umb-insert-code-box__description">
|
72 |
| - <localize key="template_defineSectionDesc"></localize> |
| 74 | + <localize key="template_defineSectionDesc">Defines a part of your template as a named section by wrapping it in <code>@section { ... }</code>. |
| 75 | + This can be rendered in a specific area of the parent of this template, by using <code>@RenderSection</code>. |
| 76 | + </localize> |
73 | 77 | </div>
|
74 |
| - |
| 78 | + |
75 | 79 | <div ng-if="model.insertType === 'addSection'" style="margin-top: 20px;">
|
76 | 80 | <div>
|
77 |
| - <label class="bold"><localize key="template_sectionName"></localize> <span class="red">*</span></label> |
| 81 | + <label class="bold"><localize key="template_sectionName">Section Name</localize> <span class="red">*</span></label> |
78 | 82 | <input type="text" name="sectionName" class="-full-width-input" ng-model="model.sectionName" required umb-auto-focus />
|
79 | 83 | <span ng-messages="templateSectionsForm.sectionName.$error" show-validation-on-submit>
|
80 |
| - <small class="red" ng-message="required"><localize key="required"></localize></small> |
| 84 | + <small class="red" ng-message="required"><localize key="required">Required</localize></small> |
81 | 85 | </span>
|
82 | 86 | </div>
|
83 | 87 | </div>
|
84 |
| - |
| 88 | + |
85 | 89 | </div>
|
86 | 90 |
|
87 | 91 | </umb-box-content>
|
|
0 commit comments