forked from archesproject/arches
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add user accounts and remove dependence on casbin, allowing projects …
…to pull it in
- Loading branch information
Showing
12 changed files
with
531 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
400 changes: 400 additions & 0 deletions
400
arches/app/models/migrations/9604_relational_data_model_handle_user_accounts.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 3.2.19 on 2023-10-31 09:03 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('models', '9477_fix_for_spatial_view_dbf_function_edtf_displaying_null'), | ||
('models', '9604_relational_data_model_handle_user_accounts'), | ||
] | ||
|
||
operations = [ | ||
] |
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
arches/app/templates/views/components/datatypes/user_account.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% load i18n %} | ||
<!-- ko if: $data.search --> | ||
<div class="col-md-4 col-lg-3"> | ||
<select | ||
class="resources" | ||
data-bind=" | ||
value: op, | ||
chosen: {width: '100%', disable_search_threshold: 15}, | ||
optionsText: 'text', | ||
optionsValue: 'value', | ||
options: [ | ||
{ text: $root.translations.like, value: '~' }, | ||
{ text: $root.translations.notLike, value: '!~' }, | ||
{ text: $root.translations.equals, value: 'eq' }, | ||
{ text: $root.translations.not, value: '!eq' }, | ||
{ text: $root.translations.hasNoValue, value: 'null' }, | ||
{ text: $root.translations.hasAnyValue, value: 'not_null' }, | ||
], | ||
attr: {'aria-label': $root.translations.searchCriteria}, | ||
" | ||
></select> | ||
</div> | ||
<div class="col-md-3 col-lg-2"> | ||
<select | ||
data-bind=" | ||
options: languages, | ||
optionsText: function(item){return item.name + ' (' + item.code + ')'}, | ||
value: language, chosen:{width:'100%'}, | ||
attr: {'aria-label': $root.translations.languages} | ||
" | ||
></select> | ||
</div> | ||
<div class="col-md-5 col-lg-7" data-bind="visible: op() !== 'null' && op() !== 'not_null'"> | ||
<input | ||
type="text" | ||
class="form-control input-lg" | ||
style="height: 36px;" | ||
data-bind=" | ||
attr: {placeholder: $root.translations.name, 'aria-label': $root.translations.name}, | ||
value: searchValue, | ||
valueUpdate: 'keyup' | ||
" | ||
> | ||
</div> | ||
<!-- /ko --> |
47 changes: 47 additions & 0 deletions
47
arches/app/templates/views/components/widgets/user_account.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "views/components/widgets/base.htm" %} | ||
{% load template_tags %} | ||
{% load i18n %} | ||
|
||
{% block form %} | ||
<div class="row widget-wrapper" data-bind="let: {uid: Math.random().toString()}"> | ||
<!-- ko if: node --> | ||
<i data-bind="css: {'ion-asterisk widget-label-required': node.isrequired}"></i> | ||
<!-- /ko --> | ||
<div class="form-group"> | ||
<div class="col-xs-12"> | ||
<input type="text" data-bind=" | ||
textInput: value, | ||
attr: {placeholder: placeholder, disabled: disabled, 'aria-label': label}" | ||
class="form-control input-lg widget-input"> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock form %} | ||
|
||
{% block config_form %} | ||
<div class="control-label"> | ||
<span data-bind="text: $root.translations.placeholder"></span> | ||
</div> | ||
<div class="col-xs-12 pad-no crud-widget-container"> | ||
<input | ||
class="form-control input-md widget-input" | ||
data-bind=" | ||
attr: {placeholder: $root.translations.placeholder, 'aria-label': $root.translations.placeholder}, | ||
textInput: placeholder | ||
" | ||
> | ||
</div> | ||
|
||
<div class="control-label"> | ||
<span data-bind="text: $root.translations.defaultValue"></span> | ||
</div> | ||
<div class="col-xs-12 pad-no crud-widget-container"> | ||
<input | ||
class="form-control input-md widget-input" | ||
data-bind=" | ||
attr: {placeholder: $root.translations.defaultValue, 'aria-label': $root.translations.defaultValue}, | ||
textInput: defaultValue | ||
" | ||
> | ||
</div> | ||
{% endblock config_form %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters