Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

$if(error)$<div class="error"><p>$error$</p></div>$endif$

<div class="config_settings">

<div>
<form method="post" action="$formurl$/settings">
<input type="hidden" name="a" value="$auth$" />

<h2>Configuration settings</h2>
<p>
<em>Consult documentation before altering any of the configuration settings.</em> Incorrect
configuration settings may break parts of this site. As per the documentation, some
configuration settings take effect immediately, some after a short delay, and some after
a restart of the application.
</p>


$if(!first(settings))$
<p>No configuration settings exist. New settings can be created using the form below.</p>
$endif$

<table>
<tr>
<th>Name</th>
<th>Value</th>
<th></th>
</tr>
$settings:{f|
<tr>
    <td>$f.key;format="html"$ <a href='$formurl$/settings?name=$f.key;format="url"$&amp;a=$auth$' class="delete">Delete</a></td>
    <td>$f.value;format="html"$</td>
</tr>
}$
<tr>
	<td><input type="text" name="name" id="name" value="" placeholder="Setting name" /></td>
	<td><input type="text" name="value" id="value" value="" placeholder="Setting value" /> <input type="submit" value="Add"/></td>
</tr>
</table>
</div>


</form>
</div>

<script type="text/javascript">
document.getElementById('name').focus();
</script>

$footer()$
New to GrepCode? Check out our FAQ X