Merge branch 'MDL-77669-400' of https://github.com/andrewnicols/moodle into MOODLE_40...
[moodle.git] / mod / glossary / editcategories.html
blob450f5d0af7b693277eaf18857080dcfce2f360b4
1 <?php
2 global $CFG;
3 require_once("../../config.php");
4 ?>
5 <div class="boxaligncenter">
6 <form id="form" method="post" action="editcategories.php">
7 <div id="fitem_id_name" class="form-group row fitem">
8 <div class="col-md-3">
9 <label class="col-form-label d-inline " for="name">
10 <?php echo get_string("name") ?>
11 </label>
12 </div>
13 <div class="col-md-9 form-inline felement" data-fieldtype="select">
14 <input type="text" name="name" id="name" class="form-control" size="30" value="<?php p($name) ?>" />
15 </div>
16 </div>
17 <div id="fitem_id_usedynalink" class="form-group row fitem">
18 <div class="col-md-3">
19 <span class="float-sm-right text-nowrap">
20 <?php echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
21 </span>
22 <label class="col-form-label d-inline " for="usedynalink">
23 <?php echo get_string("linkcategory","glossary") ?>
24 </label>
25 </div>
26 <div class="col-md-9 form-inline felement" data-fieldtype="select">
27 <select size="1" id="usedynalink" name="usedynalink" class="custom-select">
28 <option value="1" <?php
29 if ( $usedynalink ) {
30 echo "selected=\"selected\"";
32 ?>><?php echo get_string("yes") ?></option>
33 <option value="0" <?php
34 if ( !$usedynalink ) {
35 echo "selected=\"selected\"";
37 ?>><?php echo get_string("no") ?>
38 </option>
39 </select>
40 </div>
41 </div>
42 <div id="fgroup_id_buttonar" class="form-group row fitem femptylabel" data-groupname="buttonar">
43 <div class="col-md-3">
44 <span class="float-sm-right text-nowrap">
45 </span>
46 <label class="col-form-label d-inline " for="fgroup_id_buttonar">
47 </label>
48 </div>
49 <div class="col-md-9 form-inline felement" data-fieldtype="group">
50 <div class="form-group fitem form-submit mr-1">
51 <label class="col-form-label" for="id_save">
52 </label>
53 <span data-fieldtype="submit">
54 <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
55 <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
56 <input type="hidden" name="action" value="<?php p($action) ?>" />
57 <input type="hidden" name="confirm" value="1" />
58 <input type="hidden" name="mode" value='cat' />
59 <input type="hidden" name="hook" value="<?php p($hook) ?>" />
60 <input type="submit" class="btn btn-primary" name="save" id="id_save"
61 value="<?php echo get_string("savechanges") ?>" />
62 </span>
63 </div>
64 <div class="form-group fitem btn-cancel">
65 <label class="col-form-label" for="id_back">
66 </label>
67 <span data-fieldtype="submit">
68 <input type="reset" class="btn btn-secondary" name="back" id="id_back"
69 value="<?php print_string("back", "glossary") ?>" onclick="javascript:history.go(-1);" />
70 </span>
71 </div>
72 </div>
73 </div>
74 <div>
75 </div>
76 </form>
77 </div>