You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
5.4 KiB
118 lines
5.4 KiB
<?php $this->partial ('aside_feed'); ?> |
|
|
|
<?php if ($this->flux) { ?> |
|
<div class="post"> |
|
<a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <?php echo Translate::t ('or'); ?> <a href="<?php echo _url ('index', 'index', 'get', 'f_' . $this->flux->id ()); ?>"><?php echo Translate::t ('filter'); ?></a> |
|
|
|
<h1><?php echo $this->flux->name (); ?></h1> |
|
<?php echo $this->flux->description (); ?> |
|
|
|
<?php if ($this->flux->inError ()) { ?> |
|
<p class="alert alert-error"><span class="alert-head"><?php echo Translate::t ('damn'); ?></span> <?php echo Translate::t ('feed_in_error'); ?></p> |
|
<?php } ?> |
|
|
|
<form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>"> |
|
<legend><?php echo Translate::t ('informations'); ?></legend> |
|
<div class="form-group"> |
|
<label class="group-name" for="name"><?php echo Translate::t ('title'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" name="name" id="name" value="<?php echo $this->flux->name () ; ?>" /> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name"><?php echo Translate::t ('feed_description'); ?></label> |
|
<div class="group-controls"> |
|
<textarea name="description" id="description"><?php echo $this->flux->description (); ?></textarea> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name"><?php echo Translate::t ('website_url'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" name="website" id="website" value="<?php echo $this->flux->website (); ?>" /> |
|
<a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo icon('link'); ?></a> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name"><?php echo Translate::t ('feed_url'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" name="url" id="url" value="<?php echo $this->flux->url (); ?>" /> |
|
<a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo icon('link'); ?></a> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name"></label> |
|
<div class="group-controls"> |
|
<a class="btn" href="<?php echo _url ('feed', 'actualize', 'id', $this->flux->id ()); ?>"> |
|
<?php echo icon('refresh'); ?> <?php echo Translate::t('actualize'); ?> |
|
</a> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name"><?php echo Translate::t ('number_articles'); ?></label> |
|
<div class="group-controls"> |
|
<span class="control"><?php echo $this->flux->nbEntries (); ?></span> |
|
<label class="checkbox" for="keep_history"> |
|
<input type="checkbox" name="keep_history" id="keep_history" value="yes"<?php echo $this->flux->keepHistory () == 'yes' ? ' checked="checked"' : ''; ?> /> |
|
<?php echo Translate::t ('keep_history'); ?> |
|
</label> |
|
</div> |
|
</div> |
|
|
|
<div class="form-group"> |
|
<label class="group-name" for="category"><?php echo Translate::t ('category'); ?></label> |
|
<div class="group-controls"> |
|
<select name="category" id="category"> |
|
<?php foreach ($this->categories as $cat) { ?> |
|
<option value="<?php echo $cat->id (); ?>"<?php echo $cat->id ()== $this->flux->category () ? ' selected="selected"' : ''; ?>> |
|
<?php echo $cat->name (); ?> |
|
</option> |
|
<?php } ?> |
|
</select> |
|
</div> |
|
</div> |
|
|
|
<legend><?php echo Translate::t ('advanced'); ?></legend> |
|
<div class="form-group"> |
|
<label class="group-name" for="priority"><?php echo Translate::t ('show_in_all_flux'); ?></label> |
|
<div class="group-controls"> |
|
<label class="checkbox" for="priority"> |
|
<input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->flux->priority () > 0 ? ' checked="checked"' : ''; ?> /> |
|
<?php echo Translate::t ('yes'); ?> |
|
</label> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label class="group-name" for="path_entries"><?php echo Translate::t ('css_path_on_website'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" /> |
|
<?php echo icon('help'); ?> <?php echo Translate::t ('retrieve_truncated_feeds'); ?> |
|
</div> |
|
</div> |
|
|
|
<?php $auth = $this->flux->httpAuth (false); ?> |
|
<div class="form-group"> |
|
<label class="group-name" for="http_user"><?php echo Translate::t ('http_username'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" name="http_user" id="http_user" value="<?php echo $auth['username']; ?>" autocomplete="off" /> |
|
<?php echo icon('help'); ?> <?php echo Translate::t ('access_protected_feeds'); ?> |
|
</div> |
|
|
|
<label class="group-name" for="http_pass"><?php echo Translate::t ('http_password'); ?></label> |
|
<div class="group-controls"> |
|
<input type="password" name="http_pass" id="http_pass" value="<?php echo $auth['password']; ?>" autocomplete="off" /> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="form-group form-actions"> |
|
<div class="group-controls"> |
|
<button class="btn btn-important"><?php echo Translate::t ('save'); ?></button> |
|
<button class="btn btn-attention confirm" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('delete'); ?></button> |
|
</div> |
|
</div> |
|
</form> |
|
</div> |
|
|
|
<?php } else { ?> |
|
<div class="alert alert-warn"><span class="alert-head"><?php echo Translate::t ('no_selected_feed'); ?></span> <?php echo Translate::t ('think_to_add'); ?></div> |
|
<?php } ?>
|
|
|