Skip to content

Commit

Permalink
#1679 Update more pages for Typography
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Jul 21, 2018
1 parent 4c59b16 commit c64214d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 68 deletions.
26 changes: 9 additions & 17 deletions themes/Typography/views/answer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,15 @@
exit;
?>

<form class="form-horizontal" id="report" method="post" action="misc.php?answer=<?php echo $comment_id ?>&amp;tid=<?php echo $thread_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="main container">
<div class="row">
<div class="col-12">
<div class="title-block title-block-success">
<h2>
<i class="fas fa-fw fa-check"></i> <?php _e('Answer', 'luna') ?>
<span class="float-right">
<button type="submit" class="btn btn-light btn-light-success" name="submit" accesskey="s"><span class="fas fa-fw fa-check"></span> <?php _e('Yes', 'luna') ?></button>
</span>
</h2>
</div>
<div class="tab-content tab-content-success">
<input type="hidden" name="form_sent" value="1" />
<p><?php _e('Are you certain that this comment is the solution to your thread?', 'luna') ?></p>
</div>
</div>
<form class="main container" id="report" method="post" action="misc.php?answer=<?php echo $comment_id ?>&amp;tid=<?php echo $thread_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="jumbotron default">
<h2><?php _e('Answer', 'luna') ?></h2>
</div>
<div class="row">
<div class="col-12">
<input type="hidden" name="form_sent" value="1" />
<p><?php _e('Are you certain that this comment is the solution to your thread?', 'luna') ?></p>
<button type="submit" class="btn btn-success" name="submit" accesskey="s"><span class="fas fa-fw fa-check"></span> <?php _e('Yes', 'luna') ?></button>
</div>
</div>
</form>
26 changes: 9 additions & 17 deletions themes/Typography/views/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,16 @@

?>

<div class="main container">
<form method="post" action="delete.php?id=<?php echo $id ?>" class="main container">
<div class="jumbotron default">
<h2><?php draw_delete_title(); ?></h2>
</div>
<div class="row">
<div class="col-12">
<form method="post" action="delete.php?id=<?php echo $id ?>">
<div class="title-block title-block-danger">
<h2>
<i class="fas fa-fw fa-trash"></i> <?php draw_delete_title(); ?>
<span class="float-right">
<button type="submit" class="btn btn-light btn-light-danger" name="delete"><span class="fas fa-fw fa-trash"></span> <?php _e('Delete', 'luna') ?></button>
</span>
</h2>
</div>
<div class="tab-content tab-content-danger">
<p><?php echo ($is_thread_comment) ? '<strong>'.__('This is the first comment in the thread, the whole thread will be permanently deleted.', 'luna').'</strong> ' : '' ?><?php _e('The comment you have chosen to delete is set out below for you to review before proceeding.', 'luna') ?></p>
<hr />
<?php echo $cur_comment['message'] ?>
</div>
</form>
<p><?php echo ($is_thread_comment) ? '<strong>'.__('This is the first comment in the thread, the whole thread will be permanently deleted.', 'luna').'</strong> ' : '' ?><?php _e('The comment you have chosen to delete is set out below for you to review before proceeding.', 'luna') ?></p>
<button type="submit" class="btn btn-danger" name="delete"><span class="fas fa-fw fa-trash"></span> <?php _e('Delete', 'luna') ?></button>
<hr />
<?php echo $cur_comment['message'] ?>
</div>
</div>
</div>
</form>
26 changes: 9 additions & 17 deletions themes/Typography/views/soft.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,16 @@

?>

<div class="main container">
<form class="main container" method="post" action="delete.php?id=<?php echo $id ?>&action=soft">
<div class="jumbotron default">
<h2><?php draw_delete_title(); ?></h2>
</div>
<div class="row">
<div class="col-12">
<form method="post" action="delete.php?id=<?php echo $id ?>&action=soft">
<div class="title-block title-block-danger">
<h2>
<i class="fas fa-fw fa-eye-slash"></i> <?php draw_delete_title(); ?>
<span class="float-right">
<button type="submit" class="btn btn-light btn-light-danger" name="soft_delete"><span class="fas fa-fw fa-eye-slash"></span> <?php _e('Hide', 'luna') ?></button>
</span>
</h2>
</div>
<div class="tab-content tab-content-danger">
<p><?php echo ($is_thread_comment) ? '<strong>'.__('This is the first comment in the thread, the whole thread will be hidden.', 'luna').'</strong> ' : '' ?><?php _e('The comment you have chosen to hide is set out below for you to review before proceeding. Deleting this comment is not permanent. If you want to delete a comment permanently, please use delete instead.', 'luna') ?></p>
<hr />
<?php echo $cur_comment['message'] ?>
</div>
</form>
<p><?php echo ($is_thread_comment) ? '<strong>'.__('This is the first comment in the thread, the whole thread will be hidden.', 'luna').'</strong> ' : '' ?><?php _e('The comment you have chosen to hide is set out below for you to review before proceeding. Deleting this comment is not permanent. If you want to delete a comment permanently, please use delete instead.', 'luna') ?></p>
<button type="submit" class="btn btn-danger" name="soft_delete"><span class="fas fa-fw fa-eye-slash"></span> <?php _e('Hide', 'luna') ?></button>
<hr />
<?php echo $cur_comment['message'] ?>
</div>
</div>
</div>
</form>
26 changes: 9 additions & 17 deletions themes/Typography/views/unsolved.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@
if (!defined('FORUM'))
exit;
?>
<form class="form-horizontal" id="report" method="post" action="misc.php?unanswer=<?php echo $comment_id ?>&amp;tid=<?php echo $thread_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="main container">
<div class="row">
<div class="col-12">
<div class="title-block title-block-danger">
<h2>
<i class="fas fa-fw fa-times"></i> <?php _e('Unsolved', 'luna') ?>
<span class="float-right">
<button type="submit" class="btn btn-light btn-light-danger" name="submit" accesskey="s"><span class="fas fa-fw fa-times"></span> <?php _e('Yes', 'luna') ?></button>
</span>
</h2>
</div>
<div class="tab-content tab-content-danger">
<input type="hidden" name="form_sent" value="1" />
<?php _e('Are you certain that this comment isn\'t the solution to your thread?', 'luna') ?>
</div>
</div>
<form class="main container" id="report" method="post" action="misc.php?unanswer=<?php echo $comment_id ?>&amp;tid=<?php echo $thread_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="jumbotron default">
<h2><?php _e('Answer', 'luna') ?></h2>
</div>
<div class="row">
<div class="col-12">
<input type="hidden" name="form_sent" value="1" />
<p><?php _e('Are you certain that this comment isn\'t the solution to your thread?', 'luna') ?></p>
<button type="submit" class="btn btn-danger" name="submit" accesskey="s"><span class="fas fa-fw fa-times"></span> <?php _e('Yes', 'luna') ?></button>
</div>
</div>
</form>

0 comments on commit c64214d

Please sign in to comment.