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