-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PersonEditor.php #3344
Update PersonEditor.php #3344
Conversation
bdadieb
commented
Nov 17, 2017
- adding more details in person data
- adding icons to fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes to the schema need to be in line with recommendations here: https://github.com/ChurchCRM/CRM/wiki/Code-Functional-Reference#changes-to-the-db-schema
@crossan007 thanks for your review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 1st PR, some questions, and simple code cleanup. Also missing DB scripts to add DB columns.
see #3323 for an example of how to add db changes.
@@ -5,7 +5,12 @@ | |||
* website : http://www.churchcrm.io | |||
* copyright : Copyright 2001, 2002, 2003 Deane Barker, Chris Gebhardt | |||
* Copyright 2004-2005 Michael Wilt | |||
* | |||
* | |||
* ChurchCRM is free software; you can redistribute it and/or modify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we removed all of these out of the system...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your reviews
i was working on an elder version 👍
$sNationalError = gettext('Entered ID is too big,<p>Please enter only the "14" Digits National ID.'); | ||
$bErrorFlag = true; | ||
} elseif (strlen($iNational) < 14) { | ||
$sNationalError = gettext('You entered too small ID,<p>Please enter only the "14" Digits National ID.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no html in messages, please break into two strings... also in the US it is called Social Security Number. Since US English is the default language others can override in the locale settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
$sNationalError = gettext('You entered too small ID,<p>Please enter only the "14" Digits National ID.'); | ||
$bErrorFlag = true; | ||
} elseif (strlen($iNational) < 1) { | ||
$sNationalError = gettext('You must enter the "14" Digits National ID.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the count of the # should be settings please see https://github.com/ChurchCRM/CRM/blob/master/src/ChurchCRM/dto/SystemConfig.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure I'll follow
$sWorkplaceError = gettext('You must enter Company or Workplace.'); | ||
$bErrorFlag = true; | ||
} else { | ||
$sWorkplace = $sWorkplace; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
$sWorkError = gettext('You must enter the Job or Work description.'); | ||
$bErrorFlag = true; | ||
} else { | ||
$sWork = $sWork; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
<p/> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
<label for="RecChurch"><?= gettext('Church of Recognition') ?>:</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the goal here... we are building a new system for having a Diocese / Parish
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great but this is not for that its for confession follow-up
also i need your help to set alert for last confession date if it overdue number of days
</div> | ||
</div> | ||
<div class="col-md-3"> | ||
<label for="RecFather"><?= gettext('Recognition Father') ?>:</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this father of confession if so I'm working on another system for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
</div> | ||
</div> | ||
<div class="form-group col-md-3 col-lg-3"> | ||
<label><?= gettext('Last Recognition') ?>:</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.
value="<?= change_date_for_place_holder($dMembershipDate) ?>" maxlength="10" id="sel1" size="11" | ||
placeholder="<?= SystemConfig::getValue("sDatePickerPlaceHolder") ?>"> | ||
value="<?= $dMembershipDate ?>" maxlength="10" id="sel1" size="11" | ||
placeholder="YYYY-MM-DD"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put back the system setting as it affects how people format dates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
value="<?= change_date_for_place_holder($dFriendDate) ?>" maxlength="10" id="sel2" size="10" | ||
placeholder="<?= SystemConfig::getValue("sDatePickerPlaceHolder") ?>"> | ||
value="<?= $dFriendDate ?>" maxlength="10" id="sel2" size="10" | ||
placeholder="YYYY-MM-DD"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
please fix merge issues |
please reopen when code is ready |