mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
The prefix_match field and rt_inverse field are removed from relationship_type
because that model was too complex to be useful. We also explicitly indicate whether the relationship source or destination are groups separately.
This commit is contained in:
1 parent
46f26926c4
commit
7a1b2a0dd0
8 files changed
+44
-32
No files matched your search
@@ -57,9 +57,9 @@ require_once("interactive-page.php");
|
||||
|
||||
$browser->AddColumn( 'rt_id', 'Id' );
|
||||
$browser->AddColumn( 'rt_name', translate('Name') );
|
||||
$browser->AddColumn( 'rt_isgroup', translate('To Group?'), '', '', "CASE WHEN rt_isgroup THEN 'Yes' ELSE 'No' END" );
|
||||
$browser->AddColumn( 'rt_fromgroup', translate('From Group?'), '', '', "CASE WHEN rt_fromgroup THEN 'Yes' ELSE 'No' END" );
|
||||
$browser->AddColumn( 'rt_togroup', translate('To Group?'), '', '', "CASE WHEN rt_togroup THEN 'Yes' ELSE 'No' END" );
|
||||
$browser->AddColumn( 'confers', translate('Rights') );
|
||||
$browser->AddColumn( 'prefix_match', translate("Prefix") );
|
||||
$browser->AddColumn( 'action', translate("Action"), "", "", "'<a href=\"$c->base_url/relationship_types.php?action=delete&rt_id=' || rt_id || '\">".translate("Delete")."</a>'" );
|
||||
|
||||
$browser->SetJoins( 'relationship_type' );
|
||||
@@ -77,24 +77,23 @@ require_once("interactive-page.php");
|
||||
array("title" => translate("Enter the name for this resource type"),
|
||||
"size" => "20") );
|
||||
|
||||
$rt_isgroup_field = new EntryField( "checkbox", "rt_isgroup",
|
||||
$rt_fromgroup_field = new EntryField( "checkbox", "rt_fromgroup",
|
||||
array("title" => translate("Is the source of this relationship a group of access rights?")) );
|
||||
|
||||
$rt_fromgroup_field = new EntryField( "checkbox", "rt_togroup",
|
||||
array("title" => translate("Is the target of this relationship a group of access rights?")) );
|
||||
|
||||
$confers_field = new EntryField( "text", "confers",
|
||||
array("title" => translate("Is this access read ('R') or Read and Write ('RW')?"),
|
||||
"size" => "5") );
|
||||
|
||||
$prefix_match_field = new EntryField( "text", "hprefix_match",
|
||||
array("title" => translate("Restrict access to prefixes matching this pattern"),
|
||||
"size" => "15") );
|
||||
|
||||
$browser->AddRow( array(
|
||||
'rt_id' => 'new',
|
||||
'rt_name' => $rt_name_field->Render(),
|
||||
'rt_link' => $rt_name_field->Render(),
|
||||
'rt_isgroup' => $rt_isgroup_field->Render(),
|
||||
'rt_fromgroup' => $rt_fromgroup_field->Render(),
|
||||
'rt_togroup' => $rt_togroup_field->Render(),
|
||||
'confers' => $confers_field->Render(),
|
||||
'prefix_match' => $prefix_match_field->Render(),
|
||||
'action' => '<input type="submit" name="submit" value="'.translate("Add").'" class="fsubmit">'
|
||||
) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user