Skip to content

Commit

Permalink
Merge pull request #257 from awf-dbca/manage-account-restrict
Browse files Browse the repository at this point in the history
Restrict user name edit
  • Loading branch information
xzzy authored Jun 5, 2024
2 parents e5b3de7 + dc842f6 commit f06e132
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wildlifecompliance/components/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ class Meta:
model = EmailUser
fields = (
'id',
'last_name',
'first_name',
#'last_name',
#'first_name',
'dob',
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,22 @@
</div>
<div class="panel-body collapse in" :id="pBody">
<form class="form-horizontal" name="personal_form" method="post">
<div class="form-group">
<label for="" class="col-sm-3 control-label"></label>
<div class="col-sm-6">
<b>To update your account name please <a href='/sso/setting'>click here</a>:</b>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-3 control-label">Given name(s)</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="first_name" placeholder="" v-model="current_user.first_name">
<input disabled type="text" class="form-control" name="first_name" placeholder="" v-model="current_user.first_name">
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-3 control-label" >Surname</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="last_name" placeholder="" v-model="current_user.last_name">
<input disabled type="text" class="form-control" name="last_name" placeholder="" v-model="current_user.last_name">
</div>
</div>
<div class="form-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@ <h3 class="panel-title">Personal Details <small>Provide your personal details</s
<div class="panel-body collapse in" id="pdbody">
<form class="form-horizontal" action="index.html" method="post">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Given name(s)</label>
<label for="" class="col-sm-3 control-label"></label>
<div class="col-sm-6">
<b>To update your account name please <a href='/sso/setting'>click here</a>:</b>
</div>
</div>
<div class="form-group">
<label disabled for="" class="col-sm-2 control-label">Given name(s)</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="first_name" placeholder="">
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label" >Surname</label>
<label disabled for="" class="col-sm-2 control-label" >Surname</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="last_name" placeholder="">
</div>
Expand Down

0 comments on commit f06e132

Please sign in to comment.