Skip to content

Instantly share code, notes, and snippets.

View distributedlife's full-sized avatar

Ryan Boucher distributedlife

View GitHub Profile
<div class="group-legend"><%=ViewData["Title"]%></div>
<p>
<label for="StreetAddress">Address:</label>&nbsp;
<textarea name="HomeAddress.StreetAddress" id="HomeAddress.StreetAddress" cols="20" rows="3" <%=!isEditable ? "readonly='readonly'":"" %>>
<%= Model.StreetAddress %>
</textarea>
<%= Html.ValidationMessage("StreetAddress", "*") %>
</p>
@distributedlife
distributedlife / role_display.js
Last active December 18, 2015 23:49
no this, just behaviour, injected deps -- no new, uses one builder, event driven
define([], function() {
"use strict";
return function(player, ui_builder) {
var label = ui_builder.build_label("player_role");
var refresh = function() {
if (player.is_batting()) {
label.update_text("You are batting.");
} else {
@distributedlife
distributedlife / p2-improve-17.feature
Created June 2, 2013 03:32
P2 Magazine - Issue 01 - Improve This
Given a completed auction
Then the admin can’t suspend the auction.
@distributedlife
distributedlife / p2-improve-16.feature
Created June 2, 2013 03:31
P2 Magazine - Issue 01 - Improve This
When auctioneer ends Live Sale after all listings have run
Then admin verifies that they "cannot" suspend the Live Sale
@distributedlife
distributedlife / p2-improve-15.feature
Created June 2, 2013 03:27
P2 Magazine - Issue 01 - Improve This
Given a No Sale
Then the auction can be suspended.
@distributedlife
distributedlife / p2-improve-14.feature
Created June 2, 2013 03:26
P2 Magazine - Issue 01 - Improve This
When buyer_2 bids
And auctioneer does a "Sell" on the listing
And auctioneer does a "No Sale" on the listing
Then admin verifies that they "can" suspend the Live Sale
@distributedlife
distributedlife / p2-improve-13.feature
Created June 2, 2013 03:24
P2 Magazine - Issue 01 - Improve This
Given an auction that has not started
When the auctioneer sets the starting bid
Then the auction has started.
@distributedlife
distributedlife / p2-improve-12.feature
Created June 2, 2013 03:23
P2 Magazine - Issue 01 - Improve This
# Auctioneer starts the Live Sale
And auctioneer sets a starting bid of 4000
@distributedlife
distributedlife / p2-improve-11.feature
Created June 2, 2013 03:20
P2 Magazine - Issue 01 - Improve This
When admin resumes the Live Sale
Then Following users should not see the splash popup
| role |
| auctioneer |
| seller |
| buyer_1 |
@distributedlife
distributedlife / p2-improve-10.feature
Last active December 17, 2015 23:49
P2 Magazine - Issue 01 - Improve This
Given an auction with 2 registered users.
When an auction is suspended
Then all registered users are notified of the suspension
Then the auctioneer is notified of the suspension
Then the seller is notified of the suspension