The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 91f345e6 authored by Chris Hallberg's avatar Chris Hallberg Committed by Demian Katz
Browse files

Template style tweak.

parent 964563ab
No related merge requests found
......@@ -6,20 +6,22 @@
<div id="commentList">
<?=$this->render('record/comments-list.phtml')?>
</div>
<form class="comment row" name="commentRecord" id="commentRecord" action="<?=$this->recordLink()->getActionUrl($this->driver, 'AddComment')?>" method="post">
<div class="col-sm-3 name">
<input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>"/>
<input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>"/>
<strong><?=$this->transEsc("Your Comment")?></strong>
</div>
<div class="col-sm-9">
<? $user = $this->auth()->isLoggedIn() ?>
<? if($user): ?>
<textarea id="comment" name="comment" class="form-control" rows="3" required></textarea><br/>
<input class="btn btn-primary" data-loading-text="<?=$this->transEsc('Submitting') ?>..." type="submit" value="<?=$this->transEsc("Add your comment")?>"/>
<? else: ?>
<textarea id="comment" name="comment" class="form-control" rows="3" disabled></textarea><br/>
<input onClick="Lightbox.get('MyResearch', 'UserLogin'); return false;" class="btn btn-primary" type="submit" value="<?=$this->transEsc("You must be logged in first")?>"/>
<? endif; ?>
<form class="comment" name="commentRecord" id="commentRecord" action="<?=$this->recordLink()->getActionUrl($this->driver, 'AddComment')?>" method="post">
<div class="row">
<div class="col-sm-3 name">
<input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>"/>
<input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>"/>
<strong><?=$this->transEsc("Your Comment")?></strong>
</div>
<div class="col-sm-9">
<? $user = $this->auth()->isLoggedIn() ?>
<? if($user): ?>
<textarea id="comment" name="comment" class="form-control" rows="3" required></textarea><br/>
<input class="btn btn-primary" data-loading-text="<?=$this->transEsc('Submitting') ?>..." type="submit" value="<?=$this->transEsc("Add your comment")?>"/>
<? else: ?>
<textarea id="comment" name="comment" class="form-control" rows="3" disabled></textarea><br/>
<input onClick="Lightbox.get('MyResearch', 'UserLogin'); return false;" class="btn btn-primary" type="submit" value="<?=$this->transEsc("You must be logged in first")?>"/>
<? endif; ?>
</div>
</div>
</form>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment