I already posted the link to the FLR form in post #5. FLR means Further Leave to Remain.
She can still apply for FLR or ILR even a week before her visa runs out. Just make sure that UKVI will get the application on the last valid date stated in the visa (16 August 2014 in your case). If they get it even a day after that, then it will be considered as late application
Edit: I just checked that 16 August 2014 falls on a Saturday. I hope Terpe or anyone who knows can advice you about the correct timing of submitting the application when it falls on a weekend.