~singpolyma/sgx-jmp

3cc228e3ae5fafbfff5ca6dfc17a1a63025d95a7 — root21 1 year, 10 months ago 5bdeea5
Changed 'Invite' to 'Referral' where it displays ot the end user.
4 files changed, 10 insertions(+), 7 deletions(-)

M forms/admin_add_invites.rb
M forms/admin_menu.rb
M forms/registration/activate.rb
M sgx_jmp.rb
M forms/admin_add_invites.rb => forms/admin_add_invites.rb +2 -2
@@ 1,10 1,10 @@
form!
instructions "Add Invites"
instructions "Add Referrals"

field(
	var: "to_add",
	type: "text-single",
	datatype: "xs:integer",
	label: "How many invites to add",
	label: "How many referral codes to add",
	value: "0"
)

M forms/admin_menu.rb => forms/admin_menu.rb +1 -1
@@ 22,7 22,7 @@ field(
		{ value: "undo", label: "Undo" },
		{ value: "reset_declines", label: "Reset Declines" },
		{ value: "set_trust_level", label: "Set Trust Level" },
		{ value: "add_invites", label: "Add Invites" },
		{ value: "add_invites", label: "Add Referral Codes" },
		{ value: "number_change", label: "Number Change" },
		{ value: "add_transaction", label: "Add Transaction" }
	]

M forms/registration/activate.rb => forms/registration/activate.rb +2 -2
@@ 4,7 4,7 @@ title "Activate JMP"
center = " (#{@rate_center})" if @rate_center
instructions <<~I
	You've selected #{@tel}#{center} as your JMP number.
	To activate your account, you can either deposit $#{CONFIG[:activation_amount]} to your balance or enter your invite code if you have one.
	To activate your account, you can either deposit $#{CONFIG[:activation_amount]} to your balance or enter your referral code if you have one.
	(If you'd like to pay in a cryptocurrency other than Bitcoin, currently we recommend using a service like simpleswap.io, morphtoken.com, changenow.io, or godex.io. Manual payment via Bitcoin Cash is also available if you contact support.)
I



@@ 24,7 24,7 @@ field(
		},
		{
			value: "code",
			label: "Invite Code"
			label: "Referral Code"
		},
		{
			value: "mail",

M sgx_jmp.rb => sgx_jmp.rb +5 -2
@@ 680,11 680,14 @@ Command.new(
) {
	Command.customer.then(&:unused_invites).then do |invites|
		if invites.empty?
			Command.finish("You have no more invites right now, try again later.")
			Command.finish(
				"You have no more referral codes right now, " \
				"try again later."
			)
		else
			Command.finish do |reply|
				reply.form.type = :result
				reply.form.title = "Unused Invite Codes"
				reply.form.title = "Unused Referral Codes"
				reply.form.instructions =
					"Each of these codes is single use and gives the person using " \
					"them a free month of JMP service. You will receive credit " \