summary refs log tree commit diff
path: root/pages/config.php
blob: 109e4aa65be0d0ca56c99199edff5bf0007b7c94 (plain) (blame)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php

auth_reauthenticate();
access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );

layout_page_header( lang_get( 'plugin_MantisSmalltech_title' ) );

layout_page_begin( 'manage_overview_page.php' );

print_manage_menu( 'manage_plugin_page.php' );

# Syntax highlighting. Currently selected theme
$t_syntax_highlighting_current_theme = plugin_config_get( 'syntax_highlighting_theme' );
?>

<div class="col-md-12 col-xs-12">
<div class="space-10"></div>
<div class="form-container">

<form id="smalltech-config-form" action="<?php echo plugin_page( 'config_edit' )?>" method="post">
<?php echo form_security_field( 'plugin_smalltech_config_edit' ) ?>

<div class="widget-box widget-color-blue2">
  <div class="widget-header widget-header-small">
    <h4 class="widget-title lighter">
      <?php print_icon( 'fa-text-width', 'ace-icon' ); ?>
      <?php echo sprintf( '%s: %s',
        lang_get( 'plugin_MantisSmalltech_title' ),
        lang_get( 'plugin_MantisSmalltech_config' )
      ) ?>
    </h4>
  </div>
<div class="widget-body">
<div class="widget-main no-padding">
<div class="table-responsive">
<table class="table table-bordered table-condensed table-striped">
<tr>
  <th class="category width-40">
    <?php echo lang_get( 'plugin_smalltech_process_gerrit_links' ) ?>
    <br>
    <span class="small">
      <?php echo lang_get( 'plugin_smalltech_process_gerrit_links_info' ) ?>
    </span>
  </th>
  <td class="center width-20">
    <label>
      <input
        type="radio"
        name="process_gerrit_links"
        value="1"
        class="ace"
        <?php check_checked( plugin_config_get( 'process_gerrit_links' ), ON ) ?>
      >
      <span class="lbl padding-6">
        <?php echo lang_get( 'plugin_smalltech_enabled' ) ?>
      </span>
    </label>
  </td>
  <td class="center width-20">
    <label>
      <input
        type="radio"
        name="process_gerrit_links"
        value="0"
        class="ace"
        <?php check_checked( plugin_config_get( 'process_gerrit_links' ), OFF ) ?>
      >
      <span class="lbl padding-6">
        <?php echo lang_get( 'plugin_smalltech_disabled' ) ?>
      </span>
    </label>
  </td>
</tr>

</table>
</div>
</div>
<div class="widget-toolbox padding-8 clearfix">
  <input
    type="submit" class="btn btn-primary btn-white btn-round"
    value="<?php echo lang_get( 'change_configuration' ) ?>"
  >
</div>
</div>
</div>
</form>
</div>
</div>

<?php
layout_page_end();