summaryrefslogtreecommitdiffstats
path: root/webui_templates/repo_edit.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'webui_templates/repo_edit.tmpl')
-rw-r--r--webui_templates/repo_edit.tmpl38
1 files changed, 33 insertions, 5 deletions
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 445218f..30d516d 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -13,6 +13,10 @@ function disablename(value)
</script>
#end if
+#if $editable != True
+#set global $owners = $repo.owners
+#include "/usr/share/cobbler/webui_templates/enoaccess.tmpl"
+#end if
<form method="post" action="$base_url?mode=repo_save">
<fieldset id="cform">
@@ -58,6 +62,8 @@ function disablename(value)
<p class="context-tip">How do you want to modify this object?</p>
</td>
</tr>
+ #else
+ <input type="hidden" name="editmode" value="new"/>
#end if
<tr>
@@ -164,8 +170,27 @@ function disablename(value)
</td>
</tr>
-
+ <tr>
+ <td>
+ <label for="owners">Access Allowed For</label>
+ </td>
+ <td>
#if $repo
+ #set ownerslist = ','.join($repo.owners)
+ #end if
+ <input type="text" size="255" style="width: 400px;" name="owners" id="owners"
+ #if $repo
+ value="$ownerslist"
+ #else
+ value="$user"
+ #end if
+ />
+ <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p>
+ </td>
+ </tr>
+
+
+ #if $repo and $editable == True
<tr>
<td>
<label for="delete">Delete</label>
@@ -178,6 +203,7 @@ function disablename(value)
</tr>
#end if
+ #if $editable == True
<tr>
<td>
</td>
@@ -185,6 +211,7 @@ function disablename(value)
<input type="submit" name="submit" value="Save"/>
<input type="reset" name="reset" value="Reset"/>
</tr>
+ #end if
</table>
</fieldset>
@@ -192,10 +219,11 @@ function disablename(value)
<br/>
<blockquote>
-Note: Newly added repos contain no package content until "cobbler reposync" is run
-from the command line, which means that profiles relying on these repositories will
-not install. Placing "cobbler reposync" on a crontab to ensure frequent updates
-is recommended procedure.
+Note: Newly added repos contain no package content until
+"cobbler reposync" is run from the command line, which means
+that profiles relying on these repositories will not install.
+Placing "cobbler reposync" on a crontab to ensure frequent
+updates is recommended procedure.
</blockquote>
<br/>