Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.Moodle is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template tiny_media/insert_image_modal_detailsInsert image details body template.Example context (json):{"elementid": "exampleId","alt": "Image description","presentation": true,"width": 600,"height": 400,"customStyle": "","sizecustomhelpicon": {"text": "Help text"}}}}<div class="tiny_image_image_details"><div class="container"><div class="row"><!-- Column 1: Image Preview and Description --><div class="tiny_image_preview_col col-lg-7 p-0"><input type="hidden" class="tiny_image_customstyle" value="{{customStyle}}"><!-- Row 1: Image preview --><div class="tiny_image_preview_box border rounded"><!-- Delete image icon --><div class="tiny_image_deleteicon" tabindex="0" title="{{#str}} deleteimage, tiny_media {{/str}}"><i class="fa fa-trash-o" title="{{#str}} deleteimage, tiny_media {{/str}}"></i></div><!-- Image placeholder --><img class="tiny_image_preview" src="data:," alt></div><!-- Row 2: Image description --><div class="form-group mt-3"><label for="{{elementid}}_tiny_image_altentry">{{#str}} enteralt, tiny_media {{/str}}</label><textarea class="tiny_image_altentry form-control fullwidth" id="{{elementid}}_tiny_image_altentry" name="altentry" maxlength="125">{{alt}}</textarea><!-- Character counter --><div id="the-count" class="d-flex justify-content-end small"><span id="currentcount">0</span><span id="maximumcount"> / 125</span></div></div></div><!-- Column 2: Checkbox and Radio Buttons --><div class="tiny_image_properties_col col-lg-5"><!-- Row 1: Image presentation role --><div class="form-check mb-2"><input type="checkbox" class="tiny_image_presentation form-check-input" id="{{elementid}}_tiny_image_presentation" {{# presentation }}checked{{/ presentation }}><label class="form-check-label" for="{{elementid}}_tiny_image_presentation">{{#str}} presentation, tiny_media {{/str}}</label></div><!-- Row 2: Original size radiobutton --><div class="form-check mb-2 pl-0"><input type="radio" class="tiny_image_sizeoriginal" id="{{elementid}}_tiny_image_sizeoriginal" name="radioOptions"><label class="form-check-label" for="{{elementid}}_tiny_image_sizeoriginal">{{#str}} sizeoriginal, tiny_media {{/str}}</label></div><!-- Row 3: Custom size radiobutton --><div class="form-check pl-0 mb-2"><input type="radio" class="tiny_image_sizecustom" id="{{elementid}}_tiny_image_sizecustom" name="radioOptions"><label class="form-check-label" for="{{elementid}}_tiny_image_sizecustom">{{#str}} sizecustom, tiny_media {{/str}}</label></div><!-- Row 4: Image size --><div class="tiny_image_properties mb-2"><!-- Row 1: Image width and height --><div id="{{elementid}}_tiny_image_size" class="tiny_image_size container ml-1"><div class="d-flex justify-content-start"><!-- Column 1: Width Input --><div class="flex-item mr-2"><div class="form-group mb-0"><input type="number" min="0" class="tiny_image_widthentry form-control mr-1 input-mini" id="{{elementid}}_tiny_image_widthentry" value="{{width}}"><label for="{{elementid}}_tiny_image_widthentry" class="ml-1">{{#str}} width, tiny_media {{/str}}</label></div></div><!-- Column 2: "X" Text --><div class="flex-item mr-1 mt-2">X</div><!-- Column 3: Height Input --><div class="flex-item mr-1"><div class="form-group mb-0"><input type="number" min="0" class="tiny_image_heightentry form-control ml-1 input-mini" id="{{elementid}}_tiny_image_heightentry" value="{{height}}"><label for="{{elementid}}_tiny_image_heightentry" class="ml-1">{{#str}} height, tiny_media {{/str}}</label></div></div><div class="tiny_image_customhelpicon flex-item ml-1">{{#sizecustomhelpicon}}{{> core/help_icon }}{{/sizecustomhelpicon}}</div></div></div><!-- Row 2: Keep proportion --><div class="form-check mb-2"><input type="checkbox" class="tiny_image_constrain form-check-input" id="{{elementid}}_tiny_image_constrain"><label class="form-check-label" for="{{elementid}}_tiny_image_constrain">{{#str}} constrain, tiny_media {{/str}}</label></div></div></div></div></div></div>