<commit_before>{* $Id$ *}

{title help="Contribution"}{tr}Admin Contributions{/tr}{/title}

{if $contribution}
	<h2>{tr}Edit the contribution:{/tr} {$contribution.name|escape}</h2>
	<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post">
		<input type="hidden" name="contributionId" value="{$contribution.contributionId}">
		<table class="formcolor">
			<tr>
				<td>{tr}Name{/tr}</td>
				<td>
					<input type="text" name="name"{if $contribution.name} value="{$contribution.name|escape}"{/if}>
				</td>
			</tr>
			<tr>
				<td>{tr}Description{/tr}</td>
				<td>
					<input type="text" name="description" size="80" maxlength="250"{if $contribution.description} value="{$contribution.description|escape}"{/if}>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" class="btn btn-default btn-sm" name="replace" value="{tr}Save{/tr}">
				</td>
			</tr>
		</table>
	</form>
{/if}

<h2>{tr}Settings{/tr}</h2>
<form action="tiki-admin_contribution.php?page=features" method="post">
	{cycle print=false values="even,odd"}
	<table class="formcolor">
		<tr>
			<td>
				<input type="checkbox" name="feature_contribution_mandatory" {if $prefs.feature_contribution_mandatory eq 'y'}checked="checked"{/if}>
			</td>
			<td>
				{tr}Contributions are mandatory in wiki pages{/tr}
			</td>
		</tr>
		<tr>
			<td>
				<input type="checkbox" name="feature_contribution_mandatory_forum" {if $prefs.feature_contribution_mandatory_forum eq 'y'}checked="checked"{/if}>
			</td>
			<td>
				{tr}Contributions are mandatory in forums{/tr}
			</td>
		</tr>
		<tr>
			<td>
				<input type="checkbox" name="feature_contribution_mandatory_comment" {if $prefs.feature_contribution_mandatory_comment eq 'y'}checked="checked"{/if}>
			</td>
			<td>
				{tr}Contributions are mandatory in comments{/tr}
			</td>
		</tr>
		<tr>
			<td>
				<input type="checkbox" name="feature_contribution_mandatory_blog" {if $prefs.feature_contribution_mandatory_blog eq 'y'}checked="checked"{/if}>
			</td>
			<td>
				{tr}Contributions are mandatory in blogs{/tr}
			</td>
		</tr>
		<tr>
			<td>
				<input type="checkbox" name="feature_contribution_display_in_comment" {if $prefs.feature_contribution_display_in_comment eq 'y'}checked="checked"{/if}>
			</td>
			<td>
				{tr}Contributions are displayed in the comment/post{/tr}
			</td>
		</tr>
		<tr>
			<td>
				<input type="checkbox" name="feature_contributor_wiki" {if $prefs.feature_contributor_wiki eq 'y'}checked="checked"{/if}>
			</td>
			<td>{tr}Contributors{/tr}
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>
				<input type="submit" class="btn btn-default btn-sm" name="setting" value="{tr}Save{/tr}">
			</td>
		</tr>
	</table>
</form>


<h2>{tr}Create a new contribution{/tr}</h2>

<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post">
	<table class="formcolor">
		<tr>
			<td>{tr}Name{/tr}</td>
			<td><input type="text" name="name"></td>
		</tr>
		<tr>
			<td>{tr}Description{/tr}</td>
			<td>
				<input type="text" name="description" size="80" maxlength="250">
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>
				<input type="submit" class="btn btn-default btn-sm" name="add" value="{tr}Add{/tr}">
			</td>
		</tr>
	</table>
</form>

<h2>{tr}List of contributions{/tr}</h2>
<div class="table-responsive">
<table class="table normal">
	<tr><commit_msg>[REF] Replace table.formcolor with Bootstrap form layout.<commit_after>{* $Id$ *}

{title help="Contribution"}{tr}Admin Contributions{/tr}{/title}

{if $contribution}
	<h2>{tr}Edit the contribution:{/tr} {$contribution.name|escape}</h2>
	<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post" class="form-horizontal" role="form">
		<input type="hidden" name="contributionId" value="{$contribution.contributionId}">
        <div class="form-group">
            <label class="col-sm-3 control-label" for="name">{tr}Name{/tr}</label>
            <div class="col-sm-9">
					<input type="text" name="name" class="form-control" id="name" {if $contribution.name} value="{$contribution.name|escape}"{/if}>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label" for="description">{tr}Description{/tr}</label>
            <div class="col-sm-9">
                <input type="text" name="description" id="description" class="form-control" maxlength="250"{if $contribution.description} value="{$contribution.description|escape}"{/if}>
            </div>
        </div>
        <div class="form-group text-center">
            <input type="submit" class="btn btn-default btn-sm" name="replace" value="{tr}Save{/tr}">
		</div>
	</form>
{/if}

<h2>{tr}Settings{/tr}</h2>
<form action="tiki-admin_contribution.php?page=features" method="post" class="form-horizontal" role="form">
	{cycle print=false values="even,odd"}
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for=feature_contribution_mandatory">
				<input type="checkbox" name="feature_contribution_mandatory" id="feature_contribution_mandatory" {if $prefs.feature_contribution_mandatory eq 'y'}checked="checked"{/if}>
				{tr}Contributions are mandatory in wiki pages{/tr}
			</label>
        </div>
    </div>
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for="feature_contribution_mandatory_forum">
                <input type="checkbox" name="feature_contribution_mandatory_forum" id="feature_contribution_mandatory_forum" {if $prefs.feature_contribution_mandatory_forum eq 'y'}checked="checked"{/if}>
				{tr}Contributions are mandatory in forums{/tr}
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for="feature_contribution_mandatory_comment">
                <input type="checkbox" name="feature_contribution_mandatory_comment" id="feature_contribution_mandatory_comment" {if $prefs.feature_contribution_mandatory_comment eq 'y'}checked="checked"{/if}>
			    {tr}Contributions are mandatory in comments{/tr}
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for="feature_contribution_mandatory_blog">
                <input type="checkbox" name="feature_contribution_mandatory_blog" id="feature_contribution_mandatory_blog" {if $prefs.feature_contribution_mandatory_blog eq 'y'}checked="checked"{/if}>
			    {tr}Contributions are mandatory in blogs{/tr}
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for="feature_contribution_display_in_comment">
                <input type="checkbox" name="feature_contribution_display_in_comment" name="feature_contribution_display_in_comment" {if $prefs.feature_contribution_display_in_comment eq 'y'}checked="checked"{/if}>
			    {tr}Contributions are displayed in the comment/post{/tr}
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="checkbox">
            <label class="col-sm-11 col-sm-offset-1" for="feature_contributor_wiki">
            <input type="checkbox" name="feature_contributor_wiki" name="feature_contributor_wiki" {if $prefs.feature_contributor_wiki eq 'y'}checked="checked"{/if}>
			{tr}Contributors{/tr}
            </label>
        </div>
    </div>
    <div class="form-group text-center">
		<input type="submit" class="btn btn-default btn-sm" name="setting" value="{tr}Save{/tr}">
	</div>
</form>


<h2>{tr}Create a new contribution{/tr}</h2>

<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post" class="form-horizontal" role="form">
	<div class="form-group">
        <label class="col-sm-3 control-label" for="new_contribution_name">{tr}Name{/tr}</label>
        <div class="col-sm-9">
            <input type="text" name="new_contribution_name" id="new_contribution_name" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label" for="new_contribution_name">{tr}Description{/tr}</label>
        <div class="col-sm-9">
			<input type="text" name="description" class="form-control" maxlength="250">
		</div>
	</div>
	<div class="form-group text-center">
		<input type="submit" class="btn btn-default btn-sm" name="add" value="{tr}Add{/tr}">
    </div>
</form>

<h2>{tr}List of contributions{/tr}</h2>
<div class="table-responsive">
<table class="table normal">
	<tr>
{'fraction_non_alphanumeric': 0.1824051654560129, 'fraction_numerical': 0.006687420731004266, 'mean_word_length': 3.9821941412981046, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3937536', 'n_tokens_mistral': 3323, 'n_tokens_neox': 2975, 'n_words': 534}