Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-hover">
- <thead>
- <tr>
- <th>Path</th>
- <th>Module</th>
- <th>Controller</th>
- <th>Action</th>
- <th>Access Role</th>
- <th>Compare Operator</th>
- <th>Submit</th>
- </tr>
- </thead>
- <?
- $aRoutes = $this->getValue('aRoutes');
- if (count($aRoutes) == 0) {
- ?>
- <tr>
- <td colspan="7">No routes found!</td>
- </tr>
- <?
- } else {
- /**
- * @var Default_Model_RouteEntity $oRoute
- */
- foreach ($aRoutes as $oRoute) {
- ?>
- <tbody>
- <tr>
- <td><input type="text" class="form-control input-sm" name="path"
- value="<?= $oRoute->getPath(); ?>"/></td>
- <td><input type="text" class="form-control input-sm" name="module"
- value="<?= $oRoute->getModule(); ?>"/></td>
- <td><input type="text" class="form-control input-sm" name="controller"
- value="<?= $oRoute->getController(); ?>"/></td>
- <td><input type="text" class="form-control input-sm" name="action"
- value="<?= $oRoute->getAction(); ?>"/></td>
- <td>
- <input type="text" class="form-control input-sm" name="accessRole"
- value="<?= $oRoute->getAccessRole(); ?>"/>
- <select class="form-control" name="role">
- <option></option>
- <?
- $aRoles = IV_Doctrine_Base::getRoles();
- foreach ($aRoles as $sName => $iValue) {
- echo '<option value="' . $iValue . '">' . IV_Language_Base::translate($sName, 'en', 'default') . '</option>';
- }
- ?>
- </select></td>
- <td>
- <input type="text" class="form-control input-sm" name="roleCompareOperator"
- value="<?= $oRoute->getRoleCompareOperator(); ?>"/>
- </td>
- <td>
- <input type="hidden" name="id" value="<?= $oRoute->getId(); ?>"/>
- <button type="button" class="btn btn-default btn-sm" id="route_update">Edit</button>
- </td>
- </tr>
- </tbody>
- <?
- }
- } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement