Skip to content

Commit 086a9b9

Browse files
committed
Fix SourceGitphp repository update page
Replace 1.2.x table-based form and deprecated helper_alternate_class() calls with 1.3.x-style layout.
1 parent 4a9209c commit 086a9b9

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

SourceGitphp/SourceGitphp.php

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,30 @@ public function update_repo_form( $p_repo ) {
8787
$t_master_branch = 'master';
8888
}
8989
?>
90-
<tr <?php echo helper_alternate_class() ?>>
91-
<td class="category"><?php echo plugin_lang_get( 'gitphp_root' ) ?></td>
92-
<td><input name="gitphp_root" maxlength="250" size="40" value="<?php echo string_attribute( $t_gitphp_root ) ?>"/></td>
93-
</tr>
94-
<tr <?php echo helper_alternate_class() ?>>
95-
<td class="category"><?php echo plugin_lang_get( 'gitphp_project' ) ?></td>
96-
<td><input name="gitphp_project" maxlength="250" size="40" value="<?php echo string_attribute( $t_gitphp_project ) ?>"/></td>
97-
</tr>
98-
<tr <?php echo helper_alternate_class() ?>>
99-
<td class="category"><?php echo plugin_lang_get( 'master_branch' ) ?></td>
100-
<td><input name="master_branch" maxlength="250" size="40" value="<?php echo string_attribute( $t_master_branch ) ?>"/></td>
101-
</tr>
90+
<div class="field-container">
91+
<label><span><?php echo plugin_lang_get( 'gitphp_root' ) ?></span></label>
92+
<span class="input">
93+
<input name="gitphp_root" maxlength="250" size="40" value="<?php echo string_attribute( $t_gitphp_root ) ?>"/>
94+
</span>
95+
<span class="label-style"></span>
96+
</div>
97+
98+
<div class="field-container">
99+
<label><span><?php echo plugin_lang_get( 'gitphp_project' ) ?></span></label>
100+
<span class="input">
101+
<input name="gitphp_project" maxlength="250" size="40" value="<?php echo string_attribute( $t_gitphp_project ) ?>"/>
102+
</span>
103+
<span class="label-style"></span>
104+
</div>
105+
106+
<div class="field-container">
107+
<label><span><?php echo plugin_lang_get( 'master_branch' ) ?></span></label>
108+
<span class="input">
109+
<input name="master_branch" maxlength="250" size="40" value="<?php echo string_attribute( $t_master_branch ) ?>"/>
110+
</span>
111+
<span class="label-style"></span>
112+
</div>
113+
102114
<?php
103115
}
104116

0 commit comments

Comments
 (0)